Difference between action and forward attribute in html:link tag
Joined: Sep 09, 2008
Why is it, when I use html:link tag's action attribute, I get my form validated on the initial view (for the first time) and if I use html:link tag's forward attribute, I don't get that behaviour?
I am using Struts 1.3.8. I am using modules I am using Tiles I am using Struts Validator My folder structure looks like this: WebContent/index.jsp WebContent/employee/index.jsp WEB-INF/struts-config-employee.xml WEB-INF/struts-config.xml WEB-INF/web.xml WEB-INF/validation.xml WEB-INF/tiles-defs.xml
This is the code when I use "forward" attribute: index.jsp:
tiles-defs.xml: <definition name="addEmployee.page" extends="main.layout"> <put name="title" value="ABC, Inc. Human Resources Portal - Employee Search"/> <put name="body" value="/employee/admin/addEmployee.jsp"/> </definition>
If you need the validation.xml I can send it too. This way I get the validation done on the initial run. Can anyone explain to me why? I guess I don't have to always use forward but I don't know how this could be fixed.