Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can i change the url of struts?

 
harry lee
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our struts forum.

The telnet movie was neat.
Maybe you could post that, in a new thread to our Meaningless drivel, forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic