
Struts
黄瓜和土豆
码农一个
展开
-
学习struts2.0,更新知识
http://struts.apache.org/2.x/http://www.blogjava.net/max/ Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to st原创 2007-09-12 15:17:00 · 1092 阅读 · 0 评论 -
struts2利用annotation和xml两种方式验证
1.Struts2 验证之一采用xml1.validation.xml文件的命名有两种方式,即class-validation.xml和class-alias-validation.xml。其中的class就是该Action的类名(不含.class),alias就是action-name。需要注意的是,class-validation.xml在调用该class的任何方法时都会起作用,class原创 2008-06-27 10:42:00 · 3889 阅读 · 1 评论 -
使用Maven2 原型(Archetype) 建立Struts程序
1.mavenn安装见: http://blog.youkuaiyun.com/pengchua/archive/2007/09/17/1788228.aspx1.命令: (参考:http://struts.apache.org/2.1.2/docs/struts-maven-archetypes.html)mvn archetype:create -DgroupId=tutorial -Dar原创 2008-06-26 14:32:00 · 1121 阅读 · 0 评论 -
如何写公共的strutsAction
1.dispatchMethod方法是org.apache.struts.actions.DispatchAction中的protected方法.protected ActionForward dispatchMethod(ActionMapping mapping, ActionForm form,原创 2007-12-17 16:02:00 · 1446 阅读 · 0 评论 -
struts 多模块配置
1、在web系统根目录下建立与模块名相同的文件夹2、在WEB-INFO中建立同样的与模块名一一对应的文件夹,存放配置文件3、web.xml中配置 servlet> servlet-name>actionservlet-name> servlet-class>org.apache.struts.action.ActionServletservlet-c转载 2007-12-17 10:41:00 · 1032 阅读 · 0 评论 -
关于web中下拉列表的几种实现方法
关于web中下拉列表的几种实现方法 作者:诚心 来源:www.admin21.com 发布时间:2007-7-18 14:38:43 <!--转载 2007-12-17 10:14:00 · 1882 阅读 · 0 评论 -
在服务器端进行异常处理方法
在服务器端进行异常处理:1.各种类型的异常类:publicclass ValidateException extends RuntimeException { public ValidateException() {} public ValidateException(String msg) { super(msg); }原创 2007-10-29 14:16:00 · 1611 阅读 · 0 评论 -
Review_struts2.x
1.struts2.x povides features to reduce xml configuration via intelligent defaults,utilizes annotations and provides conventions over configuration.Actions are now POJOs which increases testability原创 2007-10-15 16:45:00 · 592 阅读 · 0 评论 -
HDIV:HTTP Data Integrity Validator
http://www.hdiv.org/HDIV:HTTP Data Integrity ValidatorWe can briefly define HDIV as a Java Web Application Security Framework. HDIV extends web applications’ behaviour by adding Security functionaliti原创 2007-09-20 16:14:00 · 1896 阅读 · 0 评论 -
Struts 1.x Vs Struts 2.x
In the following section, we are going to compare the various features between the two frameworks. Struts 2.x is very simple in comparison to the struts 1.x , few of its excelling features are:原创 2007-09-13 13:40:00 · 1099 阅读 · 0 评论 -
struts2.与spring集成
1.将struts2-spring-plugin-2.0.8.jar文件包含到我们的应用中,放到WEB-INF/lib目录下面即可。在这个插件包中有个struts-plugin.xml文件,它的内容如下: class="org.apache.struts2.spring.StrutsSpringObjectFactory" />原创 2008-06-27 10:43:00 · 6696 阅读 · 4 评论