里面的beanForm不是
应该是:
package mvc.form;import org.apache.struts.action.*;
import javax.servlet.http.*;public class loginForm extends ActionForm {
  private String name;
  private String password;
  public String getName() {
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }
  public String getPassword() {
    return password;
  }
  public void setPassword(String password) {
    this.password = password;
  }
  public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
    /**@todo: finish this method, this is just the skeleton.*/
    ActionErrors errors=new ActionErrors();
    if((name==null)||(name.length()<1)){
      errors.add("name",new ActionError("login.form.name.error"));
    }
    if((password==null)||(password.length()<1)){
      errors.add("password",new ActionError("login.form.password.error"));
    }
    return errors;
  }
  public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
    name=null;
    password=null;
  }
}