• 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
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Redirect jsp pages

 
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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • 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?
 
Ranch Hand
Posts: 893
Tomcat Server Java Ubuntu
  • 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
 
We begin by testing your absorbancy by exposing you to this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic