`
eggbucket1
  • 浏览: 76485 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
文章分类
社区版块
存档分类
最新评论
文章列表
Struts中的DispatchAction类似于Struts2中的动态方法调用 下面请看示例代码 首先是web.xml文件 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLoc ...
老习惯,直接代码说话 首先是web.xml文件 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/j ...
废话少说,直接代码说话,这里用的是Struts1.2 首先是web.xml文件 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java. ...
发两句牢骚:JQuery远没有想象中的那么好玩,起码没有EJB好玩,很是让偶失望。。 发两句牢骚:所以关于JQuery的那点事儿,也就没力气再写其它的文章了。。 对于JQuery开发Ajax应用,以及与Struts2集成等,请参考我早期发表的以下三篇文章 使用JQuery在Struts2中进行异步请求 、、What is JSON and Its usage 、、What is GSON and Its usage 下面演示了JQuery的基本写法 <script type="text/javascript" src="jquer ...
直接代码说话,说明信息详见注释。。 首先是自定义的使用@Inherited标注的注解----InheritedTest.java package com.jadyer.annotation.inherited; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) @Inherited public @inter ...
直接代码说话,说明信息详见注释。。 首先是自定义的使用@Retention标注的注解----MyAnnotation.java package com.jadyer.annotation.retention; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) publ ...
直接代码说话,说明信息详见注释。。 首先是自定义注解----JadyerAnnotation.java package com.jadyer.annotation.custom; enum EnumTest { Hello, World, Welcome; } /** * It is a Marker Annotation * 也就是说Annotation名称本身即提供信息 * 对于程序分析工具来说,主要是检查是否有MarkerAnnotation的出现,并作出对应的动作 */ public @interface JadyerAnnotation { ...
这是一个Web Project 首先是web.xml文件 <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml ...
这是一个Web Project 首先是web.xml文件 <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml ...
这是一个Web Project 首先是web.xml文件 <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/n ...
这是一个Web Project 首先是web.xml文件 <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml ...
这是一个Java Project 首先是自定义的连接数据库的属性文件jdbc.properties driverClassName=oracle.jdbc.OracleDriver url=jdbc/:oracle/:thin/:@127.0.0.1/:1521/:jadyer username=scott password=jadyer initialSize=1 maxActive=500 maxIdle=2 minIdle=1 然后是与jdbc.properties同样位于classpath下的beans.xml文件 <?xml version="1.0" ...
演示了int、String、数组、list、set、map、Date等属性的注入 其中Date类型的注入则是借助了Spring提供的属性编辑器来实现的 首先是用到的五个实体类 package com.jadyer.model; import java.util.Date; import java.util.List; import java.util.Map; import java.util.Set; /** * 常见属性的注入 * @see 包括int,String,Array,list,set,map,Date的注入 */ public class Bean1 ...
这里演示的是Spring中使用AspectJ注解和XML配置两种方式实现AOP 下面是使用AspectJ注解实现AOP的Java Project 首先是位于classpath下的applicationContext.xml文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLS ...
这是一个Web Project,使用了jdk1.6.0_13和JavaEE5.0 首先列出的是该工程所使用的Jar包 /** * 本工程所用Jar包,如下所示 * @see -------------------------------------------------------- * @see 【Struts2.1.8.1】 * @see commons-fileupload-1.2.1.jar * @see commons-io-1.3.2.jar * @see commons-logging-1.0.4.jar * @see freemarker-2.3 ...
Global site tag (gtag.js) - Google Analytics