Two Laptop Bag*
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
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: 8836
    
    7

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]
 
Consider Paul's rocket mass heater.
 
subject: Debugging JSPs in Struts 2 application
 
Similar Threads
Installation steps for struts 2 with apache tomcat
Does Struts 2 is using IOC Concepts?
Need help regarding Struts 2
Sharing information between struts 2 variables and scriplets
HTML forms