Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to find in which jsp is session parameter declared?  RSS feed

 
Vesko Jel
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to search in jsp, servlets to find where something is declared?
I have:

but where(when) "us" is stored in session?
I can't debug the project because it's not working yet. Find also won't help - too many jsps.
I'm using Eclipse.Maybe some Eclipse view will help.
 
Dhruva Mistry
Ranch Hand
Posts: 67
Eclipse IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can find out such declared parameters in .html/.htm file for specific project
 
Vijitha Kumara
Bartender
Posts: 3973
24
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vesko Jel wrote:

but where(when) "us" is stored in session?


No. That is coming from request (as a request parameter). You will find that probably in a JSP/HTML page as the name of a input/hidden field.
 
Vesko Jel
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree. But in which page. Too many pages contains "us"....
But only one contains -> name="us".
But i thought that there is view that shows declared parameters, because there is such for used beans.




Vijitha Kumara wrote:
Vesko Jel wrote:

but where(when) "us" is stored in session?


No. That is coming from request (as a request parameter). You will find that probably in a JSP/HTML page as the name of a input/hidden field.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, please use the right terminology. You´re confusing "request" with "session".

Regarding to your actual problem: add an extra hidden field to the form which sends an unique and jsp-dependent parameter value along it.
 
Dhruva Mistry
Ranch Hand
Posts: 67
Eclipse IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and yes, after getting html code for that parameter, search around for session properties in jsp page...you will get to know what parameter will be in that session...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!