过滤器,是在java
web中,你传入的request,response提前过滤掉一些信息,或者提前设置一些参数,然后再传入servlet或者struts2的action进行业务逻辑,比如过滤掉非法url(不是login.do的地址请求,如果用户没有登陆都过滤掉),或者在传入servlet或者
s....
分类:
其他好文 时间:
2014-07-22 23:16:33
阅读次数:
440
1、web.xml1 2 struts23
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter4 5 6
struts27 /*8 2、struts.xml 1 2 5 6 7 ...
分类:
其他好文 时间:
2014-05-01 07:30:35
阅读次数:
274
点登录的时候,在url后面总会加上一个;jsessionid=xxx 使找不到页面 的404
Bug ,百思不得其解,最后终于找到解决方案,实验最终成功解决了这个bug,下面是解决方案1,增加依赖 org.tuckey urlrewritefilter
4.0.3 2,在web.xml中配置过滤器....
分类:
其他好文 时间:
2014-05-01 07:22:26
阅读次数:
407
1 注意struts2-spring-plugin.jar的导入。
Unabletoloadconfiguration.-action 异常。需要导入这个包2 很久都跑不通的话,可以变量可以换个值试一试
分类:
其他好文 时间:
2014-05-01 04:02:05
阅读次数:
319
java中结合struts2自定义标签的使用一、建立一个继承于SimpleTagSupport类实现它的doTag方法
1 package com.xiangshang.tag; 2 3 import java.io.IOException; 4 import
java.util.List; 5 ....
分类:
编程语言 时间:
2014-04-30 16:51:52
阅读次数:
619
JSONArray--------------->List----------------->Adapter------------------>ListView
分类:
Web程序 时间:
2014-04-29 16:34:46
阅读次数:
337
Index.jsp struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts...
分类:
Web程序 时间:
2014-04-29 13:57:27
阅读次数:
510
list集合转换JSON出错误意思是:对象”是一个数组。使用jsonarray代替。解决方法:将JSONObject替换为JSONArray代码:JsonConfig jsonConfig = new JsonConfig();jsonConfig.setCycleDetectionStrategy(CycleDetectionStrategy.LENIENT);JSONArray json = ...
分类:
Web程序 时间:
2014-04-29 13:43:21
阅读次数:
1280
JSP页面:
listValue="name" key="name" cssStyle="width:130px">
后台:
private List navs;
navs=navservice.allNav();调用dao层取得所有的值集合。
注: listValue="name"通过设置这个属性显示所有的select内容...
分类:
其他好文 时间:
2014-04-29 13:32:23
阅读次数:
236
获取contextPath 获取requestURI
分类:
其他好文 时间:
2014-04-29 11:41:46
阅读次数:
313