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

Redirect jsp pages

 
debashis ghosh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to redirect urls.
Suppose I type the url http://localhost/sites/new_user.jsp, it should take me to say, http://localhost/sites/new_user_register.jsp .
I have got a list of URLs that I want to be redirected to different URLs.
I am using ATG Dynamo 6.3.0 as my AP Server.
I do not want to use Servlet Filter or Javascript for this.
Can someone find a way out?
Thanks,
Debashis
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could create servlet-mappings for each pattern you want to redirect.
You could write a front controller that handles all requests and routes them to the proper place.

Also, you could use a filter.
You said you didn't want to do do this but you didn't say why.
Why are you against using filters?
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following link will guide you.

META http-equiv refresh

I hope this helps
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic