Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In JSP, is there a way to see all available variables in the specific scope like in PHP?

Tags:

jsp

jstl

Or better yet how do I dump all the variables in a given scope in jsp?

(In php you can use a function call to see all the system, global and user-defined vars and functions available...)

like image 908
qodeninja Avatar asked Oct 27 '09 18:10

qodeninja


1 Answers

Yes. See this article for an overview of all objects that can be accessed, and a small piece of demo code demonstrating the access per object using the JSTL.

like image 121
fvu Avatar answered Nov 12 '22 10:11

fvu