hi i have a table that has a checkbox, details of the record such as lastname, firstname with it. when user selects a record or records using checkbox corresponding to it, and click the delete button the record or records selected should be deleted. My problem is it is not able to execute the delete method within the action class.. It is directed to the entryform.jsp which is an input form when it should goes back to the list of records after it deleted the records.
here is part of my struts.xml <action name="UserMgt" class="eis.module.UserMgt" method="list"> <result name="success">/apps/modules/UserMgt/List.jsp</result> <interceptor-ref name="basicStack"/> </action> <action name="UserMgt_*" class="eis.module.UserMgt" method="{1}"> <result name="success" type="redirect-action">UserMgt</result> <result name="input">/apps/modules/UserMgt/EntryForm.jsp</result> <result name="error">/apps/modules/UserMgt/Error.jsp</result> </action> here is part of my UserMgt code public class UserMgt extends eisSupport implements Preparable { ..variable declaration here.. public String list() { UserBean userBean = new UserBean(); setUsersList(userBean.getUsersList()); return SUCCESS; } public String delete() { UserBean userBean = new UserBean(); if(userBean.deleteUser(getUserids())){ return SUCCESS; } return ERROR; } public String input() { return INPUT; } } here is part of my list.jsp delete button that calls the submit the form <s:url id="deleteActionLink" value="UserMgt_delete.action" /> <s:submit name="btnDelete" id="btnDelete" theme="ajax" value="Delete" cssClass="button" formId="adminForm" targets="module" loadingText="Loading..." errorText="Unable to load user list." href="%{deleteActionLink}" /> here is the checkbox <s:checkbox theme="simple" name="userid" fieldValue="%{getUserId()}"/> i only included here parts of the code which i think is related to my question. i also get this ParametersInterceptor - [setParameters] exception when i checked the log of my SunApp Server Unexpected Exception catched: Error setting expression '__checkbox_userid' with value '[Ljava.lang.String;@1839ff8' Unexpected Exception catched: Error setting expression 'dojo.preventCache' with value '[Ljava.lang.String;@7b88e6' Please help me..thanks in advance. -- View this message in context: http://www.nabble.com/-S2-method-not-called-tp14796735p14796735.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]