I think this link: http://husted.com/struts/tips/002.htm
addresses that issue. -Dan On Tuesday 03 September 2002 11:53, you wrote: > Hi, > > I have 2 buttons on my jsp and i want to find out which button is pressed > in my Action class, but i m not getting the submit parameter in request, my > code is as below > > I am 2 buttons on my jsp as below > > <html:form action="/pages/test"> > > <html:submit>Login</html:submit> > > <html:submit>signout</html:submit> > > </html:form> > > my struts-config.xml is as below > > <form-bean name="test" dynamic="true" > type="org.apache.struts.validator.DynaValidatorForm"> > > <form-property name="envDrop" type="java.lang.String"/> > > </form-bean> > > <action path="/pages/test" type="com.pfizer.maps.Test" > input="/pages/test.jsp" name="test" > > > <forward name="login" path="/pages/mapslogin.jsp"></forward> > > <forward name="signout" path="/pages/signout.jsp"></forward> > > </action> > > and my Action class is > > Enumeration enm = request.getParameterNames(); > while(enm.hasMoreElements()) > { > System.out.println("paramters are " + enm.nextElement()); > } > String submitVal = request.getParameter("submit"); > System.out.println("value of submit " + submitVal); > > if("Login".equals(submitVal)) > { > return mapping.findForward("login"); > } > else if("Signout".equals(submitVal)) > { > return mapping.findForward("signout"); > } > else > { > return mapping.findForward("login"); > } > > when i print the value of submitVal , it is null > > Ashish > > > > > A$HI$H > > > --------------------------------- > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>