Hi all, I am trying to validate server side. I have an action which forwards to another action. If the original action has validate="true" then the forward doesn't happen and the validation tries to validate a null form. If validate="false" in the original action then everything works but no validation occurs.
Does validator somehow alter the work flow in struts? My action doesn't get completely skipped because it does attempt to load a jsp page, but I have no idea how it gets this jsp page and why it doesn't call the action. This seems very strange. The link appears on the html page like this: <a href="/camp/jsp/family/searchFamily.do?action=addCamper">Tom</a> So, the original action is "searchFamily" and the forward is "addCamper". The forward happens inside the searchFamily action because I look for the "action" parameter and forward according to that value. This forward code is this: return (mapping.findForward(action)); Is this findForward not how I should be doing this? The struts-config excerpt for addCamper in the family module is: <forward name="addCamper" contextRelative="true" path="/jsp/camper/addCamper.do" redirect="true"/> and the excerpt in the camper module is: <action path="/addCamper" type="com.camp.actions.camper.addCamperAction" name="CamperForm" scope="session" validate="true" parameter="submit" input="/addCamper.jsp"> <forward name="add" path="/addCamper.jsp"/> <forward name="menu" contextRelative="true" path="/jsp/menu/Menu.do" redirect="true"/> <forward name="add_registration" contextRelative="true" path="/jsp/registration/addRegistration.do" redirect="true"/> </action>