Hello everybody, I want to get the value of the checkbox which i have clicked. For that i am building the following JSP page .... <html:form action="/returnsUpdateAction"> <html:multibox name="vTRReturnsUpdateForm" property="statusCheckBox" value="prashant"/> <html:link action="returnsUpdateAction?statusId=1009">some image</html:link> </html:form>
When i click the link, the framework calls the Action class(Shown below) but print blank on the console. But if i use <html:submit>,than everything works fine. How can i retrieve the value of checkbox by clicking on the link. My struts confif file is as follows <action path="/returnsUpdateAction" type="com.mphasis.mvtrproto.returns.VTRReturnsUpdateAction" name="vTRReturnsUpdateForm" scope="request"> <forward name="STATUSCHANGED" path="/changesReturnStatusSuccess.jsp" /> <exception key="global.error.invalidLogin" path="/a.jsp" scope="request" type="java.lang.SQLException"/> </action> <!-- For Acception and Rejecting Returns--> <form-bean name="vTRReturnsUpdateForm" type="org.apache.struts.validator.DynaValidatorForm"> <form-property name="statusCheckBox" type="java.lang.String[]" /> </form-bean> My Action class is as follows public class VTRReturnsUpdateAction extends Action { public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response)throws Exception { try { String returnId[] = (String[])((DynaActionForm)form).get("statusCheckBox"); System.out.println("Value is "+returnId[0]); return mapping.findForward("STATUSCHANGED"); } catch(Exception e) { e.printStackTrace(); throw e; } } } Best Regards, Prashant S. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]