Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems for redirect pages using servlet with parameters.

 
Gustavo Siqueira
Ranch Hand
Posts: 97
C++ Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm using a servlet as controller for redirect pages. The user login with a form that will be redirect for a jsp. Within in this jsp, there are several menu that is controlled with servlet parameters.
For example:

The user login in page, so, the url in browser is so: http://localhost:8080/Manggiare/manager/authEnter (Here page Home).

There are several menus: Home - Services - Contact.

When the user to click in Services, the servet will redirect for a jsp. So, the url is so: http://localhost:8080/Test/manager/authEnter/actionController?key=services

If the user wish return the page Home. The url is so: http://localhost:8080/Test/manager/authEnter/authEnter/actionController?key=home


How to fix that ?

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A) Why do you do you care what the URL is?

B) Why are you redirecting rather than forwarding?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic