最近写了一个用户注册系统,大部分已经写完,但是还有一些边角料没写,但是也都是大同小异,我就不再写了,赶着去学习hibernate了,spring还没接触呢!!!时间好紧迫啊!!!
jsp界面
users的jsp界面
admin的jsp界面
struts.xml配置文件
<!DOCTYPE struts PUBLIC
"-/...
分类:
其他好文 时间:
2014-11-20 22:03:05
阅读次数:
306
1. tomcat方式:在context.xml配置连接池,然后在web.xml中写配置代码(也可以在server.xml文件中配置连接池),这两种方法的区别是:在tomcat6版本及以上中context元素已经从server.xml文件中独立出来了,放在一个context.xml文件中。因为server.xml是不可动态重加载的资源,服务器一旦启动了以后,要修改这个文件,就得重启服务器才能重新加...
分类:
编程语言 时间:
2014-11-19 11:19:01
阅读次数:
290
2.1Struts2的配置文件Struts.xml 例2-1 struts.xml配置文件的基本结构 1.Action按模块配置 到多个配置文件中。--> 2. 3. 4. 5. 6. 7. 8. /login/login.jsp 9. /login/success.jsp 10. </packag...
分类:
其他好文 时间:
2014-11-19 08:34:53
阅读次数:
141
一:Multiple annotations found at this line:Undefined
actionName parameter Undefined
actionnamespace parameter
这个红色叉叉报错:
Multiple annotations found at this line:
- Undefined actionName
p...
分类:
其他好文 时间:
2014-11-19 02:00:36
阅读次数:
330
主要利用了Spring AOP 技术,对想要统计的方法进行横切处理,方法执行前开始计时,方法执行后停止计时,得到计时方法就是该方法本次消耗时间。步骤:首先编写自己的Interceptor类来实现MethodInterceptor类,来用于切入方法,运行计时代码Spring AOP 的XML配置,配置...
分类:
编程语言 时间:
2014-11-17 13:42:54
阅读次数:
154
Spring AOP的配置可以基于注解,也可以基于XML文件。前面几篇都是使用注解的方式。下面介绍下使用XML文件如何配置使用的测试类和切面类都类似。只需要属于AOP的注解去掉即可。下面是AOP的XML配置: 1 2 9 10 11 12 13 14 ...
分类:
编程语言 时间:
2014-11-17 00:18:48
阅读次数:
249
之前用Hibernate操作数据库,都是写下.hbm.xml配置文件的.这段时间发现注解要比.hbm.xml方便很多时,决定用注解. 之前用.hbm.xml时,在applicationContext.xml里配置是: <bean id="sessionFactory"
class="or...
分类:
移动开发 时间:
2014-11-16 20:16:57
阅读次数:
161
1.web.xml配置中添加如下代码: springmvc spring org.springframework.web.servlet.DispatcherServlet 1 spring...
分类:
编程语言 时间:
2014-11-16 14:40:46
阅读次数:
273
在web.xml中配置如下即可: org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG /WEB-INF/tiles.xml, /WEB-INF/tiles2.xml获取context-param的源代码...
分类:
其他好文 时间:
2014-11-15 12:45:07
阅读次数:
195