kand
kand

Reputation: 2338

While Debugging Where are the Variables Available to a JSP?

I am currently trying to debug through a JSP to find the value of a mystery variable being passed in from an interceptor I cannot attach a source to--and thus I cannot debug through the interceptor.

I read a number of posts saying that it is very difficult to find the variables available to a JSP if you're debugging through it, but unfortunately this might be one of the only ways I can solve my issue.

Does anyone know of any articles that detail the variable structure of a JSP, or more specifically, what object(s) store these values?

As a side note, I am using Eclipse to develop/debug.

Upvotes: 4

Views: 2084

Answers (2)

Amir Pashazadeh
Amir Pashazadeh

Reputation: 7302

Is your container a JSR-45 (as far as I remember the JSR number) compatible container? If so you can attach your IDE to it for debugging JSPs, by the way it is somehow hard to find the variables.

Upvotes: 1

Brandt Solovij
Brandt Solovij

Reputation: 2134

with the vague question I can provide some vague answers:

implicit objects:

  • response
  • request

From those you can derive cookies and session variables. Is that what you are asking?

Upvotes: 1

Related Questions