Hi all,
how to rewrite the true url in struts?For example,the ie url is:
http://localhost:8080/permissions/ but the true url is :http://localhost:8080/permissions/page/main.jsp
In fact,before this case , i think it is ok. But now ,when i press F5 to refresh the current page(
http://localhost:8080/permissions/) , it actually redirect to login.jsp...not page/main.jsp.
I had modified the code like this:
ActionRedirect redirect = new ActionRedirect(mapping.findForward("display"));
//return mapping.findForward("display");
return redirect;
But still not work.
In a word , i really want to rewirte the url to display the true url-->
http://localhost:8080/permissions/page/main.jsp Can anyone give me a hand . Thanks a lots!!!
[ September 04, 2007: Message edited by: harry lee ]