摸索2天一点结果都没有
是不是该放弃学习Struts了?
是不是该放弃学习Struts了?
解决方案 »
- java 调用润乾报表
- 帮忙解释下这个的用处哈
- 创建文件问题.
- 关于uploadpicture 图片上传组件的使用
- 把一张表里面的某个字段中的所有内容 复制到另张表的某个字段上 sql语句怎么写啊 各位帮帮忙 急着用
- String 比较不相等的问题?求解
- JbuilderX+WebLogic开发web service(wsdl)
- weblogic81 建立连接池问题:,总是报错:JDBC driver is not on the CLASSPATH
- 高分求教!
- 在jbuilder里建多个local cmp ,他们之间怎样互相访问?
- hibernate如何获取总记录数?
- 求助;webservice编写服务器端?
我把全部代码拿出来package com.MyStruts;import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.validator.ValidatorForm; public final class RegUserForm extends ValidatorForm
{
private String user;
private String password;
private String email; public RegUserForm(){
user=null;
password=null;
email=null;
} public void setUser(String user){
this.user=user;
}
public String getUser(){
return this.user;
} public void setPassword(String password){
this.password=password;
}
public String getPassword(){
return this.password;
} public void setEmail(String email){
this.email=email;
}
public String getEmail(){
return this.email;
} public void reset(ActionMapping mapping,HttpServletRequest request){
user=null;
password=null;
email=null;
}};资源文件:
prompt.password=Password
prompt.user=User# Standard error messages for validator framework checks
errors.required={0} is required.
errors.minlength={0} cannot be less than {1} characters.
errors.maxlength={0} cannot be greater than {2} characters.
errors.invalid={0} is invalid.
errors.byte={0} must be an byte.
errors.short={0} must be an short.
errors.integer={0} must be an integer.
errors.long={0} must be an long.
errors.float={0} must be an float.
errors.double={0} must be an double.
errors.date={0} is not a date.
errors.range={0} is not in the range {1} through {2}.
errors.creditcard={0} is not a valid credit card number.
errors.email={0} is an invalid e-mail address.
验证文件:validator.xml:
validator-rules.xml:
应该是配置错了
可是弄不好,真的好辛苦。请帮我看看?