/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.xx.second.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;
import org.apache.struts.upload.FormFile;
import org.apache.struts.upload.MultipartRequestHandler;
/**
* MyEclipse Struts Creation date: 07-18-2008
*
* XDoclet definition:
*
* @struts.form name="secondForm"
*/
public class SecondForm extends ActionForm {
/*
* Generated fields
*/
/** testname property */
private String testname;
private FormFile myfile;
/*
* Generated Methods
*/
/**
* Method validate
*
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
// has the maximum length been exceeded?
Boolean maxLengthExceeded = (Boolean) request
.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
if ((maxLengthExceeded != null) && (maxLengthExceeded.booleanValue())) {
errors
.add("anything", new ActionMessage("已经超过了上传文件所允许的最大值",
false));
}
return errors;
}
/**
* Method reset
*
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}
/**
* Returns the testname.
*
* @return String
*/
public String getTestname() {
return testname;
}
/**
* Set the testname.
*
* @param testname
* The testname to set
*/
public void setTestname(String testname) {
this.testname = testname;
}
public FormFile getMyfile() {
return myfile;
}
public void setMyfile(FormFile myfile) {
this.myfile = myfile;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
struts+spring.rar (89个子文件)
sspring
.mystrutsdata 253B
.springBeans 273B
src
com
xx
dao
TestDAOImpl.java 139B
TestDAO.java 76B
second
form
SecondForm.java 2KB
action
SecondAction.java 1KB
struts
ApplicationResources.properties 81B
.project 1KB
WebRoot
META-INF
MANIFEST.MF 39B
WEB-INF
struts-nested.tld 70KB
validator-rules.xml 13KB
struts-bean.tld 9KB
struts-html.tld 72KB
struts-logic.tld 14KB
struts-tiles.tld 8KB
web.xml 1KB
.struts-config.mex 2KB
classes
com
xx
dao
TestDAOImpl.class 531B
TestDAO.class 127B
second
form
SecondForm.class 2KB
action
SecondAction.class 2KB
struts
ApplicationResources.properties 81B
struts-config.xml 1KB
lib
spring-webmvc.jar 181KB
jdo2.jar 66KB
hibernate-annotations.jar 110KB
JAMon.jar 87KB
commons-beanutils.jar 160KB
velocity-1.4.jar 309KB
commons-collections.jar 480KB
itext-1.3.jar 1.08MB
spring-hibernate.jar 170KB
jakarta-oro.jar 62KB
commons-attributes-api.jar 31KB
commons-validator.jar 74KB
commons-fileupload.jar 19KB
jmxremote.jar 167KB
spring-support.jar 143KB
spring-beans.jar 200KB
ehcache-1.1.jar 41KB
antlr-2.7.5H3.jar 417KB
xapool.jar 77KB
spring-orm.jar 160KB
toplink-api.jar 43KB
spring-core.jar 104KB
spring-context.jar 95KB
commons-httpclient.jar 238KB
velocity-tools-view-1.2.jar 65KB
ibatis-sqlmap.jar 113KB
ibatis-sqlmap-2.jar 257KB
jmxremote_optional.jar 196KB
commons-logging.jar 33KB
jaxen-1.1-beta-4.jar 202KB
jmxri.jar 351KB
velocity-tools-generic-1.2.jar 17KB
jotm.jar 107KB
spring-dao.jar 82KB
cglib-nodep-2.1_3.jar 284KB
jasperreports-1.0.3.jar 751KB
commons-pool.jar 36KB
log4j-1.2.13.jar 312KB
commons-attributes-compiler.jar 25KB
freemarker.jar 690KB
commons-dbcp.jar 90KB
struts.jar 474KB
db-ojb-1.0.4.jar 905KB
antlr.jar 344KB
commons-digester.jar 147KB
spring-aop.jar 139KB
spring-jdbc.jar 163KB
cos.jar 47KB
ibatis-common-2.jar 72KB
commons-lang.jar 176KB
quartz-1.5.2.jar 332KB
poi-2.5.1.jar 682KB
jakarta-oro-2.0.8.jar 62KB
jxl.jar 520KB
dom4j-1.6.jar 256KB
c3p0-0.9.0.4.jar 423KB
spring-web.jar 124KB
hibernate3.jar 1.38MB
spring.tld 8KB
applicationContext.xml 362B
index.jsp 834B
third
third.jsp 462B
second
second.jsp 729B
first
first.jsp 462B
.mymetadata 294B
.classpath 5KB
.myeclipse
共 89 条
- 1
资源评论
Howareyou73
- 粉丝: 1
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于c++的个人收支管理系统设计
- docker一键安装包
- Screenshot_20240430_144340_com.ss.android.ugc.live.jpg
- 回到山沟沟.mp3
- 基于matlab实现自适应波束形成RLS及LMS算法仿真源程序1.rar
- 基于matlab实现自己编写的基于卡尔曼滤波的利用加速度传感器的计步器,测试数据是传感器放在腰部和手臂 .rar
- 基于matlab实现阵列信号处理,波束形成.rar
- 111111111111111111
- 基于matlab实现计步器编程;对当前的计步器装置的数值算法模拟 .rar
- Mdb学习查看PW;access;mdb;pw;password;patch
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功