wood burning stoves*
The moose likes JSP and the fly likes Redirect jsp pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Redirect jsp pages" Watch "Redirect jsp pages" New topic
Author

Redirect jsp pages

debashis ghosh
Greenhorn

Joined: Mar 21, 2007
Posts: 4
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

Joined: Dec 11, 2004
Posts: 13410

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?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
The following link will guide you.

META http-equiv refresh

I hope this helps


Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Redirect jsp pages
 
Similar Threads
how to use variable in javascript
Giving alias for http://localhots:8080/webapp
multiple URL mapping for one web app
settting my webapplication index page as tomcats index page
redirecting all request