View Review Details


Book:   Programming Jakarta Struts
Subject:   Programming Jakarta Struts Review
Date:   2003-06-18 05:56:48
From:   Chuck Cavaness
Rating:  StarStarStarStarStar

Aaron,


Take a look through chapter 7 again, especially the lifecycle figure on pg 179 and the material on 184. To summarize, when an Action has finished doing its work, it forwards to a resource (in most cases its a JSP). The ActionForm that was passed in to the Action has been stored in the proper scope as setup in the <action> element (see lifecycle diagram on pg. 179). As long as you do a forward and not a redirect, all objects including the ActionForm instance will still be in the request scope when the JSP is rendered. As with any of object in request, session or application scope, the JSP can access this data. So whatever type of information that is available in the ActionForm, you can use the Struts tag libraries to access it and display it in the JSP.


Hope that helps,


chuck

Programming Jakarta Struts
See larger cover