• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems for redirect pages using servlet with parameters.

 
Ranch Hand
Posts: 97
C++ Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A) Why do you do you care what the URL is?

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