• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

How can i change the url of struts?

 
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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • 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.
 
Put the moon back where you found it! We need it for tides and poetry and stuff. Like this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic