?? usersregform.java
字號:
/*<%--////////////////////////////////////////////////////GTON原創作品-Struts圖書館管理系統//////////////////////////////////////////////////////////////
////////////所用技術:jsp2.0+servlet2.4+jstl1.1+Struts1.2+sqlserver2000+tomcat5.5/////////////////////////////////////
/////////////////////////////////////////////////////專業制作網站 專業制作畢業設計////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////QQ:27612285//////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////Mail:punkwang@126.com////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////WEB:www.98202.com www.630cn.com//////////////////////////////////////////////////////
////////////////////////////////////////////////////qq群:20665503////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////求高薪工作一個有意者聯系本人/////////////////////////////////////////////////////////
////////////////////////////////////////////////////Phone:010-81110277(王先生)///////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--%>
<%--接 畢業設計業務 網站業務 商業網站 個人網站 商城系統 企業主頁 JSP ASP.net PHP !!!
業務種類
網站業務: 商業網站 個人網站 商城系統 企業主頁 等中小型網站(asp, jsp ,php ,asp.net)
畢業設計業務:java(j2ee j2se) vb delphi php .net等畢設業務
模塊業務:各種中小型模塊 java .net
如有需要 價格細談 QQ:27612285
我的網站
HTTP://www.98202.com
HTTP://www.do3w.com
HTTP://www.201cn.com
HTTP://www.630cn.com--%>
*/package com.gton.formbean;
import org.apache.struts.action.*;
import javax.servlet.http.HttpServletRequest;
import com.gton.bean.db.*;
public class UsersRegForm extends ActionForm {
private String user_b;
private String user_n;
private String users_Adds;
private String users_Name;
private String users_Phone;
private String users_Pwd;
private String users_Pwd1;
private String users_Sex;
public String getUser_b() {
return user_b;
}
public void setUser_b(String user_b) {
this.user_b = user_b;
}
public void setUsers_Sex(String users_Sex) {
this.users_Sex = users_Sex;
}
public void setUsers_Pwd1(String users_Pwd1) {
this.users_Pwd1 = users_Pwd1;
}
public void setUsers_Pwd(String users_Pwd) {
this.users_Pwd = users_Pwd;
}
public void setUsers_Phone(String users_Phone) {
this.users_Phone = users_Phone;
}
public void setUsers_Name(String users_Name) {
this.users_Name = users_Name;
}
public void setUsers_Adds(String users_Adds) {
this.users_Adds = users_Adds;
}
public void setUser_n(String user_n) {
this.user_n = user_n;
}
public String getUser_n() {
return user_n;
}
public String getUsers_Adds() {
return users_Adds;
}
public String getUsers_Name() {
return users_Name;
}
public String getUsers_Phone() {
return users_Phone;
}
public String getUsers_Pwd() {
return users_Pwd;
}
public String getUsers_Pwd1() {
return users_Pwd1;
}
public String getUsers_Sex() {
return users_Sex;
}
public ActionErrors validate(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
ActionErrors err = new ActionErrors();
if (this.getUser_b() == null || this.getUser_b().length() < 1) {
err.add("classerr", new ActionMessage("jsp.user.reg.class.berr"));
} else if (this.getUser_n() == null || this.getUser_n().length() < 1) {
err.add("classerr", new ActionMessage("jsp.user.reg.class.nerr"));
}else if(this.getUsers_Name() == null || this.getUsers_Name().length()<1)
{
err.add("nameerr", new ActionMessage("jsp.user.reg.nameerr"));
}else if(!DataBean.HasName(this.getUsers_Name()))
{
err.add("nameerr", new ActionMessage("jsp.user.reg.nameerr1"));
}else if(this.getUsers_Pwd() == null || this.getUsers_Pwd().length()<1)
{
err.add("pwderr", new ActionMessage("jsp.user.reg.pwderr"));
}else if(this.getUsers_Pwd1() == null || this.getUsers_Pwd1().length()<1)
{
err.add("pwd1err", new ActionMessage("jsp.user.reg.pwd1err"));
}else if(!this.getUsers_Pwd1().equals(this.getUsers_Pwd()))
{
err.add("pwd2err", new ActionMessage("jsp.user.reg.pwd2err"));
}else if(this.getUsers_Sex() == null || this.getUsers_Sex().length()<1)
{
err.add("sexerr", new ActionMessage("jsp.user.reg.sexerr"));
}else if(this.getUsers_Phone() == null || this.getUsers_Phone().length()<1)
{
err.add("phoneerr", new ActionMessage("jsp.user.reg.phoneerr"));
}else if(this.getUsers_Adds() == null || this.getUsers_Adds().length()<1)
{
err.add("addserr", new ActionMessage("jsp.user.reg.addserr"));
}
return err;
}
public void reset(ActionMapping actionMapping,
HttpServletRequest servletRequest) {
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -