This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Debugging JSPs in Struts 2 application" Watch "Debugging JSPs in Struts 2 application" New topic
Author

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
Bartender

Joined: Oct 29, 2001
Posts: 8935
    
    9

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Debugging JSPs in Struts 2 application