/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.yourcompany.struts.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
/**
* MyEclipse Struts
* Creation date: 12-12-2008
*
* XDoclet definition:
* @struts.form name="loginForm"
*/
public class LoginForm extends ActionForm {
/*
* Generated fields
*/
/** pwd property */
private String pwd;
/** uname property */
private String uname;
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
//
return null;
}
public void reset(ActionMapping mapping, HttpServletRequest request) {
//重置和初始化值
this.uname="请输入用户名";
}
/**
* Returns the pwd.
* @return String
*/
public String getPwd() {
return pwd;
}
/**
* Set the pwd.
* @param pwd The pwd to set
*/
public void setPwd(String pwd) {
this.pwd = pwd;
}
/**
* Returns the uname.
* @return String
*/
public String getUname() {
return uname;
}
/**
* Set the uname.
* @param uname The uname to set
*/
public void setUname(String uname) {
this.uname = uname;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
Struts简单范例
共32个文件
jar:8个
tld:5个
jsp:3个
需积分: 0 3 下载量 118 浏览量
2008-12-12
10:04:55
上传
评论
收藏 1.17MB RAR 举报
温馨提示
Struts简单范例 简单的登录操作,让你理解Struts的原理
资源详情
资源评论
资源推荐
收起资源包目录
Struts Test.rar (32个子文件)
Struts Test
src
com
yourcompany
struts
form
LoginForm.java 1KB
action
LoginAction.java 1KB
ApplicationResources.properties 90B
.classpath 971B
.mystrutsdata 262B
.mymetadata 294B
.settings
org.eclipse.jdt.core.prefs 330B
.myeclipse
.project 1KB
WebRoot
META-INF
MANIFEST.MF 39B
shibai.jsp 825B
login.jsp 542B
chenggong.jsp 831B
WEB-INF
classes
com
yourcompany
struts
form
LoginForm.class 1KB
action
LoginAction.class 1KB
ApplicationResources.properties 90B
struts-config.xml 923B
struts-tiles.tld 8KB
validator-rules.xml 13KB
.struts-config.mex 1KB
lib
commons-logging.jar 33KB
jakarta-oro.jar 62KB
commons-validator.jar 74KB
struts.jar 474KB
commons-beanutils.jar 160KB
antlr.jar 344KB
commons-fileupload.jar 19KB
commons-digester.jar 147KB
struts-bean.tld 9KB
struts-html.tld 72KB
struts-logic.tld 14KB
struts-nested.tld 70KB
web.xml 948B
共 32 条
- 1
eminfeng
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0