1 2 struts.xml中可以配置 3 指定全局资源文件 4
全局资源文件/包范围资源文件/动作类的资源文件 5 全局资源文件:src下放到WEB-INF/classes目录下 6
包范围资源文件:服务于Java类中的包下的动作类的。 ...
分类:
其他好文 时间:
2014-06-06 07:05:05
阅读次数:
369
(1)Tiles;(2)Notifications;(3)Action Center。
因为在Action的execute方法声明时就抛出了Exception异常,所以我们无需再execute方法中捕捉异常,仅需在struts.xml
中配置异常处理。为了使用Struts2的异常处理机制,必须打开Struts2的异常映射功能,这需要exception拦截器。在struts-defaul...
分类:
其他好文 时间:
2014-06-03 15:31:11
阅读次数:
205
struts就是充当拦截器(过滤器)的作用。在web.xml配置过滤器, 1 package
cn.itcast.framework.core; 2 3 import java.io.IOException; 4 import
java.lang.reflect.Method; 5 im...
分类:
其他好文 时间:
2014-06-03 14:33:00
阅读次数:
294
添加支持(即jar包)后的步骤为:(1)创建ActionFormYunsuanForm.javapackagecom.mstf.struts.form;importorg.apache.struts.action.ActionForm;publicclassYunsuanFormextendsActionForm{intnum1;intnum2;publicintgetNum1(){returnnum1;}publicvoidsetNum1(intnum1){this.num1=n..
分类:
其他好文 时间:
2014-06-02 16:33:15
阅读次数:
181
添加支持(即jar包)后的步骤为:(1)创建ActionFormLoginForm.javapackagecom.mstf.struts.form;importorg.apache.struts.action.ActionForm;publicclassLoginFormextendsActionForm{Stringusername;Stringpassword;publicStringgetUsername(){returnusername;}publicvoidsetUser..
分类:
其他好文 时间:
2014-06-02 14:48:03
阅读次数:
212
1概述本文主要介绍如何将JBPM+Struts+Spring+Hibernate整合在一块。并通过一个简单实例来说明。此实例为一个申请审批的简单流程,并将申请人和审批人记录到数据库中,流程为start----申请----审批----end,中间无退回,无分支,只是看一下jbpm的流程设计,本文将jb...
分类:
其他好文 时间:
2014-06-02 08:41:20
阅读次数:
232
最近在知乎看到一句话,保持学习的有一种是你看到了更多的牛人,不甘心,真的不甘心。
Spring和hibernate整合的时候,jsp页面做展现,发现展现属性出现:
org.apache.jasper.JasperException: could not initialize proxy - no Session - Class: org.hibernate.p...
分类:
编程语言 时间:
2014-06-02 05:24:04
阅读次数:
254
使用了listener监听器来加载配置,一般在Struts+Spring+Hibernate的项目中都是使用listener监听器的。如下
org.springframework.web.context.ContextLoaderListener
Spring会创建一个WebApplicationContext上下文,称为容器,保存在
ServletConte...
分类:
移动开发 时间:
2014-06-02 02:58:54
阅读次数:
281
TilingDescriptionIn how many ways can you tile
a 2xn rectangle by 2x1 or 2x2 tiles?Here is a sample tiling of a 2x17
rectangle.InputInput is a sequenc...
分类:
其他好文 时间:
2014-06-02 00:08:55
阅读次数:
343