//this gets the program name for the entire participation collection results.append(pData.getProgramName());
// Print the results to our output writer ResponseUtils.write(pageContext, results.toString());
// Continue processing this page return SKIP_BODY; }
I would like to set the value of pData.getProgramName() onto the session (or somewhere) so I can then put in my next JSP page the following (or something similar): <%=session.getAttribute("programname")%>
Any help would be greatly appreciated. Thanks! [ August 09, 2004: Message edited by: Mark Brothers ]
In my next JSP, I have the line: <TD><%=session.getAttribute("program")%></TD>
On my JSP page, I get null, instead of the value from the pData.getProgramName
Is it due to the setAttribute being on one JSP page and the getAttribute being on a separate JSP page that gets called fromt he custom tag? Thanks for all the help and assistance.
Mark, I would expect that to work. Try outputing the session attribute's value at different points in time to see where it is disappearing. Places to try include: later in the custom tag, the first JSP and the second JSP. Also, is it possible the session value is getting overlaid at some point?