Hello, I have an application with 2 buttons. Each button hides/shows a div. In each div I want to use the same ActionForm, but different Actions. Maybe this can't be done, but I also have problems using a different ActionForm for each div.
A short overview: - my initial jsp looks like this: ... <script language="javascript" type="text/javascript"> //<![CDATA[ function startCompleteOrder() { setVisible('completeOrderPopup'); runAjax(<url>, 'completeOrderPopup'); } function startChangeStatus() { setVisible('changeStatusPopup'); runAjax(<url>, 'changeStatusPopup'); } //]]> </script> ... <div id="completeOrderPopup" class="popup"> <[EMAIL PROTECTED] file="completeOrder.jsp"%> </div> <div id="changeStatusPopup" class="popup"> <[EMAIL PROTECTED] file="changeStatus.jsp"%> </div> <input class="dataButton" id="changeStatusBtn" type="button" value="Change status" onclick="startChangeStatus();" /> <input class="dataButton" id="completeOrderBtn" type="button" value="Complete order" onclick="startCompleteOrder();" /> ... - completeOrder.jsp looks like this: <jsp:include page="heading.jsp" flush="true" /> <%@ taglib uri="struts-bean" prefix="bean" %> <%@ taglib uri="struts-html" prefix="html" %> <%@ taglib uri="struts-logic" prefix="logic" %> <%@ taglib uri="taglib" prefix="tag" %> <html:form styleId="statusForm" action="saveCompleteOrder.do"> <html:hidden name="statusForm" property="barCode" styleId="barCode" /> ... </html:form> - changeStatus.jsp looks like this: <jsp:include page="heading.jsp" flush="true" /> <%@ taglib uri="struts-bean" prefix="bean" %> <%@ taglib uri="struts-html" prefix="html" %> <%@ taglib uri="struts-logic" prefix="logic" %> <%@ taglib uri="taglib" prefix="tag" %> <html:form styleId="statusForm" action="saveStatusChange.do"> <html:hidden name="P080576_changeStatusForm" property="barCode" styleId="changeStatusBarCode" /> ... </html:form> If I run my application, it sometimes works for changeStatus, sometimes for completeOrder and sometimes for both. But I want it to work always... How can I use the same ActionForm (or different ActionForms) in multiple divs? Thanks! -- View this message in context: http://www.nabble.com/How-to-handle-different-div%27s-and-1-or-more-ActionForms-tp20032791p20032791.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]