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
posted
0
I guess this could be a forward in which case the displayed url would not change.
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
posted
0
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
posted
0
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.