Professional Documents
Culture Documents
Jsp page :
<html:errors/>
<html:form action="/Login">
</html:form>
Action Form :
package com.login;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
return actionErrors;
userName = "";
password = "";
}
ApplicationResource.properties
Jsp page :
<body>
<br/>
<html:errors/>
</html:form>
</body>
Action Form :
package com.login;
import org.apache.struts.validator. ValidatorForm;
import org.apache.struts.action.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
ApplicationResource.properties
loginForm.password = Password
Struts-config.xml
Validation.xml
DYNA ACTION FORM & Server Side Error Handling
Jsp page :
<html:form action="/Login">
</html:form>
Struts-Config.xml
Action Class