struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Douglas" <>
Subject setAttribute
Date Thu, 30 Dec 2004 20:57:56 GMT
I set an attribute as follows...

public class AdsRespAction extends Action {

	public ActionForward execute(
		ActionMapping mapping,
		ActionForm Form,
		HttpServletRequest request,
		HttpServletResponse response)
		throws Exception {
                request.setAttribute("adlist", list);
		return mapping.findForward("success");

   I can loop through the adlist attribute in a jsp and build a table, no 
problem.  How long is the adlist attribute available?  Is it just for the 
page or multiple pages?

   Also, is there a way to set an attribute value in a page after the user 
has clicked on a specfic button? (and set it equal to the value of the 


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message