
jee框架模版
iteye_15928
这个作者很懒,什么都没留下…
展开
-
struts的ActionForm中的对象组
ActionForm里:List adtItems=new ArrayList();//private AdjustOrder adtItem; /** * Method reset * @param mapping * @param request */ public void reset(ActionMapping mapping, HttpServletReques...2006-12-07 10:43:43 · 140 阅读 · 0 评论 -
json-lib包笔记
json-lib.jar开发包使用: 依赖包:commons-beanutils.jar;commons-httpclient.jar;commons-lang.jar;ezmorph.jar;不少人使用时会提示net.sf.ezmorph.xxx找不到,就是缺这个:morph-1.0.1.jar 相关链接:http://json-lib.sourceforge.net/ht...2007-07-03 17:41:58 · 182 阅读 · 0 评论 -
webwork笔记之统一异常处理
webwork提供了异常的统一拦截机制,只需要在xwork.xml中写如下代码 <global-results> <result name="myDaoExceptionPage" type="dispatcher"> <param name="location">/WEB-INF/Excep..2007-06-29 17:36:37 · 136 阅读 · 0 评论 -
webwork笔记之calendar
<td> <script type="text/javascript" src="/wbwk/webwork/jscalendar/calendar.js"></script> <script type="text/javascript" src="/wbwk/webwork/jscalendar/la2007-06-29 17:35:23 · 166 阅读 · 0 评论 -
webwork笔记之freemarker
<#assign ww=JspTaglibs["/WEB-INF/lib/webwork.tld"] /> 现在tld文件一般都打在webwork包里了,我从jar的META-INF目录下找到taglib.tld文件,把他放到 lib目录下,改名为webwork.tld ================================...2007-06-29 17:33:56 · 146 阅读 · 0 评论 -
webwork笔记之action
xml 代码 public interface Action extends Serializable { public static final String SUCCESS = "success"; public static final String NONE = "none"; public static fin...2007-06-29 17:32:47 · 103 阅读 · 0 评论 -
webwork笔记之配置
<package/>标签里,这几个标签是有严格顺序的,正确顺序如下: 先<result-types>,必须有<result-type/>项; 再<interceptors>,必须有<interceptor/>项; 接下来是<default-interceptor-ref name="c...2007-06-29 17:30:56 · 107 阅读 · 0 评论 -
struts2.xml配置要点(验证基于方法级)
xml 代码 <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> &l...2007-06-15 10:10:11 · 133 阅读 · 0 评论 -
sitemesh导致页面不能正常显示问题
今天测试平台时,发现一个页面只显示了一半,后半截没了,用dw验证了一个html,没发现什么问题,想了一下,问题只能出在sitemesh上,于是把sitemesh先注释掉,果然这个页面可以正常显示了.注:这个页面是以前的,没有用到sitemesh控制布局结构,我把该页面改为用sitemesh布局后,也能正常显示.web.xml中配置的过滤器: <filter> ...2007-06-12 16:49:22 · 540 阅读 · 0 评论 -
webwork上传正解
做webwork上传时,看到各种方式的都有,只好自己分析webwork提供的showcase和源码了,看过后总结如下:上传到无所谓,关键时限制大小和格式,之前我在webwork.properties里配置webwork.multipart.maxSize,但不起作用(惭愧,但现在还不知道是那里的问题),况且这个属性只是在webwork上传文件完后判断的,看过源代码后,发现可以在代理中配置参数,...2007-05-21 14:40:00 · 133 阅读 · 0 评论 -
webwork的路径转发
1,[result]/empmanager/listSkills.jsp[/result]转到页面要带斜杠/2,[result type="chain"]actionChain2[/result]:转到本页的action,直接跟action名就行了,不需要扩展名,也不要斜杠3,[result type="redirect"]edit.action?skillName=${currentSk...2007-04-10 10:06:37 · 110 阅读 · 0 评论 -
T5学习笔记-1
component template.page类如:Countdown.java里声明如下: @Component(parameters = { "start=5", "end=1", "value=countValue" }) private Count _count;则在页面里要有<t:comp type="Count" end="3" id="count2007-03-09 16:02:06 · 391 阅读 · 0 评论 -
Spring_AOP
[bean id="remoteRegisterCall" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor"] [property name="advice"] [ref bean="remoteUserRegMethodAdvice" /] [/property] [property name="p...2007-03-09 14:58:01 · 89 阅读 · 0 评论 -
tapestry5 Pages&Components
摘自网上,以便日后查看Pages and componentsTapestry divides an application into a set of pages. Each page is assembled(装配) from Tapestry components. Components themselves may be assembled from other components...2007-03-05 11:25:31 · 129 阅读 · 0 评论 -
freemarker学习笔记
freemarker指令:<#xxx>自定义指令<@xxx>转换${1.1?int}${aa?c}作用把String转换为数字,因为freemarker默认的会采用科学计数法,比如1,000,000html:对字符串进行HTML编码 cap_first:使字符串第一个字母大写 lower_case:将字符串转换成小写 upper_case:将字符串转换成大...2007-01-04 09:30:52 · 143 阅读 · 0 评论 -
Struts,webwork运行流程
webwork运行流程:当执行xxxx.action时,比如我要执行xxxInputAction.action,它会先执行action的execute()方法,然后从这个方法转到相应的页面,我这里转到了xxxInput.ftl页面,等我输入信息提交后,又会转到xxxInputAction.action指向的java类的execute方法.理解这些,对于我们有时候有些页面数据需要初始化时有帮助S...2007-01-04 08:21:55 · 92 阅读 · 0 评论 -
Spring的单元测试
1,不操作数据库,则继承自AbstractDependencyInjectionSpringContextTests,同样要实现getConfigLocations()方法,我获取bean的方式如下:java 代码 ApplicationContext ctx = new FileSystemXmlApplicationContext(locations); HelloW...2007-08-02 14:15:03 · 135 阅读 · 0 评论