Hi Chris,
This is part of my code in my pages and my Action classes:
Page1.jsp:
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<jsp:useBean id="bean" scope="session" class="com.myapp.struts.Bean" />
<html:form action="cluster">
<table border="3" cellspacing="5">
<thead>... </thead>
<tbody>
<tr><td><html:select name="bean" property="value_of_page1" styleClass="dropdown" size="1" >
<html
ptions name="bean" property="list" />
</html:select></td></tr></tbody></table>
<html:submit value="Next step" />
Page1Action:
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
request.setAttribute("test",request.getParameter("value_of_page1"));
return mapping.findForward(SUCCESS); }
Page2.jsp:
<jsp:useBean id="bean" scope="session" class="com.myapp.struts.Bean" />
<th><bean:message key="prompt.value" /></th>
<th> <logic
resent name="test">${bean.value_of_page1}
</logic
resent></th>
.....
I was wrong to write my code before.Now I get a null value for 'value_of_page1' in Page2.jsp.
I hope this can help to find the error.
Thanks,
Mattia