
配置
文章平均质量分 59
丽鸟
我要继续主动把握自己的生活过自己想要的生活-充实丰富多彩的生活
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
myeclipse+tomcat start工程
遇到 Address already in use: JVM_Bind myeclipse tomcat 启动报错 解决办法之一:在tomcat的bin目录下,运行 shutdown.bat 文件,在windows系统中,直接双击即可。 然后再在myeclipse中启动tomcat原创 2013-04-13 15:38:04 · 400 阅读 · 0 评论 -
struts2配置中Action的name和package的name和namespace的用法,以及extends属性
在struts2 struts.xml 配置中 struts package name= caixuedong extends= struts-default namespace= /core action name= greeting class= com.tarena.struts2.action.GreetingAction result name=原创 2013-04-15 11:19:21 · 1575 阅读 · 0 评论 -
struts.xml 中配置常量constant详解
一、配置: 在struts2中配置常量的方式有三种: 在struts.xml文件中配置 在web.xml文件中配置 在sturts.propreties文件中配置 1.之所以使用struts.propreties文件配置,是因为为了保持与WebWork的向后兼容 2.在实际开发中,在web.xml中配置常量相比其他两种,需要更多的代码量,会降低了web.xml的可读性 3.转载 2013-04-15 14:51:32 · 1168 阅读 · 0 评论 -
如何配置自定义struts2拦截器
自定义特定action不被拦截的拦截器 1.在页面请求一个不被拦截的action long t=new Date().getTime(); %> /common/action/CommonAction/generateRandomCode.action?t="/> 2.在spring配置中定义拦截处理的bean: 3.在struts2配置中,自定义原创 2013-05-24 15:47:43 · 1108 阅读 · 0 评论