aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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: 8996
    
    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.


[How To Ask Questions On JavaRanch]
 
Consider Paul's rocket mass heater.
 
subject: Debugging JSPs in Struts 2 application