aspose file tools*
The moose likes Struts and the fly likes How can i change the url of struts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How can i change the url of struts?" Watch "How can i change the url of struts?" New topic
Author

How can i change the url of struts?

harry lee
Greenhorn

Joined: Jun 02, 2006
Posts: 5
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 ]
harry lee
Greenhorn

Joined: Jun 02, 2006
Posts: 5
By the way , give you a good telnet movice...

Please type it in cmd like this: telnet towel.blinkenlights.nl

Enjoy yourself.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Moving to our struts forum.

The telnet movie was neat.
Maybe you could post that, in a new thread to our Meaningless drivel, forum.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
 
subject: How can i change the url of struts?