
struts2使用心得
岁月的拓荒者
沉默中散发着幽默
展开
-
struts2错误:The Struts dispatcher cannot be found
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, w...原创 2013-02-15 15:40:22 · 132 阅读 · 0 评论 -
Struts2校验文件配置步骤
1.创建ActionName-validation.xml文件 ActionName使用你自己创建的Actinxml文件示例如下:(字段校验配置风格) <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator...原创 2013-02-17 12:40:20 · 186 阅读 · 0 评论 -
Struts2文件校验报错:Document is invalid: no grammar found.
因为在struts.xml文件中缺少了DOCTYPT定义,在文件中加入:<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts...原创 2013-02-17 12:47:19 · 252 阅读 · 0 评论 -
struts-dojo-tags datetimepicker标签无法正常显示问题 解决方案
下载struts2-dojo-plugin-2.2.3.1.jar,放到/WEB-INF/lib里struts2-dojo-plugin-2.2.3.1链接在jsp中引入tag Java代码 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3...原创 2013-02-18 20:04:04 · 282 阅读 · 0 评论 -
struts2启动报错com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1
好久没有搞struts2,今天配置strut2.2.1,tomcat启动报错:Class: com.opensymphony.xwork2.spring.SpringObjectFactory File: SpringObjectFactory.java Method: getClassInstance Line: 220 - com/opensymphony/xwork...原创 2013-02-26 17:32:20 · 333 阅读 · 0 评论 -
Struts2提示:There is no Action mapped for namespace [/] and action的解决办法
错误提示:警告: Could not find action or resultThere is no Action mapped for namespace [/] and action name [] associated with context path [/struts2_01_HelloWorld]. - [unknown location] at com.opens...原创 2014-04-11 16:56:35 · 686 阅读 · 0 评论