Hi everyone, I'm having trouble with a jsp that has two independent forms, which are separated with tabs. For some reason when i submit the second form I get an error saying "javax.servlet.jsp.JspException: Cannot find bean under name roleList", roleList is a component in the first form. Each form has its own Action Form Bean and Action class. Here is my jsp:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="<%=request.getContextPath()%>/stylesheets/application.css" type="text/css"> <title>HARPS User Management</title> <tab:tabConfig /> </head> <body> <tab:tabContainer id="role-management"> <tab:tabPane id="roleAssignment" tabTitle="Assign Roles"> <h1> Add Users to a Role </h1> <html:form action="/LoadUsers.do"> <html:hidden property="command" value="initial"/> <table> <tr> <td>Roles:</td> <td>Current Users in Role:</td> <td>All HARPS Users:</td> </tr> <tr> <td> <html:select property="rolesList_id" multiple="false" size="10" onclick="submit()"> <html:options collection="roleList" property="value" labelProperty="label"/> </html:select> </td> <td> <html:select property="userRoleList_id" multiple="true" size="10"> <html:options collection="userRoleList" property="value" labelProperty="label"/> </html:select> </td> <td> <html:select property="userList_id" multiple="true" size="10"> <html:options collection="userList" property="value" labelProperty="label"/> </html:select> </td> </tr> <tr> <td></td> <td align="center"><html:button property="removeUser" value=">> Remove User" onclick="command.value='remove';submit()"/></td> <td align="center"><html:button property="addUser" value="<< Add User" onclick="command.value='addUser';submit()"/></td> </tr> </table> </html:form> </tab:tabPane> <tab:tabPane id="createRole" tabTitle="Create New Role"> <h1> Create a New Role </h1> <html:form action="/CreateRole.do"> <table> <tr> <td><bean:message key="role.name"/> </td> <td><html:text property="roleName"/></td> <td></td> </tr> <tr> <td><bean:message key="role.description"/></td> <td><html:textarea property="roleDescription" rows="4"/></td> <td> <table> <tr> <td><html:checkbox property="jta"/></td> <td><bean:message key="jta.checkbox"/></td> </tr> <tr> <td><html:checkbox property="ntsp"/></td> <td><bean:message key="ntsp.checkbox"/></td> </tr> <tr> <td><html:checkbox property="ia"/></td> <td><bean:message key="ia.checkbox"/></td> </tr> </table> </td> </tr> <tr> <td><html:submit value="Submit"/></td> <td></td> </tr> </table> </html:form> </tab:tabPane> </tab:tabContainer> </body> </html> When I submit the form it is going to the correct Action class (I can see output from hitting the class), but it seems to fail when reloading the page. Is it maybe looking for roleList data when reloading the page? Any suggestions would be greatly appreciated!!! -- Shanna -- -- View this message in context: http://www.nabble.com/Tabs-and-Forms-tp15296617p15296617.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]