摘要:
The Struts dispatcher cannot be found.This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]解决方案:如果你是*.do或者*.actio 阅读全文
随笔档案-2013年11月
在struts里使用Kindeditor注意事项
2013-11-10 11:50 by 合翅, 201 阅读, 收藏,
摘要:
struts配置文件里 struts2 *.action 由于struts,使用拦截器,不能是/*,这个对所有的请求都拦截。解决方案:第一种方法自定义一个类,实现或继承那个strut的filter,在自定义的类中,处理掉对插件的过滤。第二种方法,让插件的servlet先访问,这就要控制在web.xml里面的servlet的访问先后顺序。第三种是改strut的请求后缀,让拦截器只对某种类型的后缀进行拦截,其他的放行。 阅读全文
java.net.BindException: Address already in use: JVM_Bind
2013-11-06 20:30 by 合翅, 318 阅读, 收藏,
摘要:
是端口占用,如果修改端口后仍提示这样的错误,可能是eclipse自动关闭或正在运行服务非正常中断导致端口没有关闭,这时你再启动,还是提示java.net.BindException:Addressalreadyinuse:JVM_Bind。解决方法:打开电脑任务管理器,查看javaw.exe*32进程,并关闭,然后启动tomcat。 阅读全文
通常Struts框架会自动地从action mapping中创建action对象
2013-11-04 19:55 by 合翅, 588 阅读, 收藏,
摘要:
开发者不必在Spring中去注册action,尽管可以这么去做,通常Struts框架会自动地从action mapping中创建action对象struts2-spring-plugin-x-x-x.jar插件中有一个struts-plugin.xml文件,该文件内容如下所示: 其中设置了Struts 2框架常量struts.objectFactory的值为spring,实际上,spring是org.apache.struts2.spring.StrutsSpringObjectFactory类的缩写,默认情况下所有由Struts 2框架创建的对象都是由ObjectFactor... 阅读全文
浙公网安备 33010602011771号