举个例子,我今天在做spring和struts2整合的例子新建项目blk1、配置好web.xml,struts.xml,applicationContext.xml,写好jsp页面2、把struts2、spring整合需要的jar包(struts核心jar包,spring核心jar包以及struts...
分类:
Web程序 时间:
2014-06-19 00:26:04
阅读次数:
287
1.标签的 奇偶数行使用不同样式 /template/shop/images/dw/x.png" /> " width="169px" height="168px"/> " target="_blank"> 万能险 ¥1000起 " target="_blank">/template/sho...
分类:
其他好文 时间:
2014-06-18 17:40:25
阅读次数:
187
struts.xml中写的是authorityInterceptor/xxx.jsp但是实际的文件结构是/authorityInteceptor/xxx.jspstruts2就报了404,所以遇到struts2报404的时候注意检查一下是不是这个问题
分类:
其他好文 时间:
2014-06-16 06:04:21
阅读次数:
212
一 Struts 1. 定义:该框架使用 MVC 设计模式开发程序 2. 框架概览: 二 Hibernate 1. 作用:提供了利用面向对象的思想来操作关系型数据的接口 2. 框架图示: 三 Spring 1. 作用: a) 创建对象 (JavaBean工厂) b)...
分类:
其他好文 时间:
2014-06-15 13:04:39
阅读次数:
284
如何在Eclipse使用Struts和Maven快速搭建一个Web项目。
分类:
Web程序 时间:
2014-06-14 16:24:55
阅读次数:
262
一、Struts 在没有学习SSH框架前,我们一般采用Jsp+java bean+servlet开发,这里就是MVC架构。而Struts其实就是替代了Servlet,我们知道Servlet在一般的开发中做控制页面跳转,同时调用系统的业务逻辑层。现在想想Struts是不是做一样的是?只是它能够更加的提...
分类:
其他好文 时间:
2014-06-14 16:10:35
阅读次数:
246
看到一个问题,报:CannotretrievedefinitionforformbeanallDisServFormonaction/allDisSer这种低级错误就是在struts配置文件里面提示formbean里面没有添加,可能你只写配置action,或者说form大小写了。或者说form你写错了。
分类:
其他好文 时间:
2014-06-13 21:18:26
阅读次数:
288
在使用DMI(动态方法调用)的时候要注意struts.xml配置时要把不然会出现错误完整示例代码struts.xml
/MyPath.jsp ...
分类:
其他好文 时间:
2014-06-12 10:34:24
阅读次数:
233
struts2/WEB-INF/web.xml blk struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts...
分类:
其他好文 时间:
2014-06-12 10:26:19
阅读次数:
223