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

Redirect jsp pages

debashis ghosh

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

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:
subject: Redirect jsp pages
It's not a secret anymore!