• 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

How to find in which jsp is session parameter declared?

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 67
Mac Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can find out such declared parameters in .html/.htm file for specific project
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic