



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




javax.servlet.http.HttpServletRequest" msg="errors.name">
<%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-html.tld" prefix="html" %>
Administrator Test
This application shows the use of Struts Validator. The following form contains fields that are processed by Struts Validator. Fill in the form and see how JavaScript generated by Validator Framework validates the form.
Name
Save
Cancel
<% out.println("SUCCESS") %>
Then we create the Java Class for the AdminForm
package test;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;
*/ public class AdminForm extends ActionForm { private String name=null;
public void setName(String name){ this.name=name; }
public String getName(){ return this.name; }
/**