File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Debugging JSPs in Struts 2 application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Debugging JSPs in Struts 2 application" Watch "Debugging JSPs in Struts 2 application" New topic

Debugging JSPs in Struts 2 application

Robert Heath
Ranch Hand

Joined: Aug 11, 2010
Posts: 94

I am using Eclipse as a development platform for a Struts 2 app. I am stepping through JSP code and wondering how to look at variables created by the Struts 2 tags. Does anyone know how to do that? Also, is there a way to look at and evaluate objects on the ValueStack and ActionContext?
Joe Ess

Joined: Oct 29, 2001
Posts: 9126

The debug tag outputs the values of the ValueStack.
I've gotten a lot of mileage just printing out values to the log via a scriptlet at the head of a JSP. Never had to dig into a JSP with a debugger, though.

[How To Ask Questions On JavaRanch]
subject: Debugging JSPs in Struts 2 application
It's not a secret anymore!