IntelliJ Java IDE
The moose likes JSP and the fly likes jsp page currently being displayed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "jsp page currently being displayed" Watch "jsp page currently being displayed" New topic
Author

jsp page currently being displayed

Peekaboo Switchback
Ranch Hand

Joined: Feb 18, 2003
Posts: 33
Hi,
I have played around with jsp pages. Any time a jsp page is displayed or if a servlet redirected the request to a jsp page, I always see a jsp name being diplayed on the browser. For example,
http://dynamic.macromedia.com/bin/MM/software/trial/survey_pg1.jsp?BV_SessionID=@@@@0367956036.1046620129@@@@&BV_EngineID=dcadcgihdjdgjbeecgemcgchf.0
Is this always the case or can we possibly hide the path to the jsp page for security reasons? I am asking because in my company, it seems like the name of the jsp page never gets diplayed even though I can see from the trace that the request is being redirected to a jsp page. All I see is the controller servlet name in the URL. Help!
Thanks
Peekaboo Switchback
Ranch Hand

Joined: Feb 18, 2003
Posts: 33
I guess this could be a forward in which case the displayed url would not change.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1177

Use HTML frames.
Rene


Regards, Rene Larsen
Dropbox Invite
Peekaboo Switchback
Ranch Hand

Joined: Feb 18, 2003
Posts: 33
Thanks for your reply Rene but I am not sure I understand.
Are you saying that if one uses htmlFrames, only the top level url will be displayed?
I do belive in my case it is a forward that is causing the request to get forwarded to jsps. I don't see any frames in the corresponding jsp code.
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 513
Hi,
one thing u try is set ur method as post in form tag
OR
use requestDispatcher to foward ur request
OR
Register all ur jsp's
regards
....Praful


All desirable things in life are either illegal, banned, expensive or married to someone else !!!
Irene Loos
Ranch Hand

Joined: Apr 15, 2002
Posts: 75
Peekaboo,
You may try to use MVC pattern and store all your JSP names in the XML file. Controller will take care of displaying proper JSP based on the request.


Irene Loos
 
 
subject: jsp page currently being displayed
 
Threads others viewed
control transfer
jsessionID.... can it be replaced?
Toshiba Satellite 2430 Laptop
Digital Camera
JRun or Tomcat
IntelliJ Java IDE