Hi,
I have my action configured in struts-xml, evidently my action completes succesfully because when I refresh the view I can see the result I expect. However the problem is that my action remains on a blank page after completing. What could be the problem?
Im on
struts 2.2.1. Here is my action execute and mapping
public
String execute(){
try{
member = new MemberService().saveMember(member);
return SUCCESS;
}catch(Exception e){
return ERROR;
}
}
struts.xml
<action name="addMember" class="action.AddMember"
method="execute">
<result name="success" type="dispatcher">/viewmembers.jsp</result>
<result name="error">/error.jsp</result>
<result name="input">/addMember.jsp</result>
</action>
What am i doing wrong? It should at least forward to the error page if there was an error. And like I said when i manually open the viewmembers.jsp I can see that my hibernate code worked perfectly. Help.