Could not find action or result: /car/GetGpsDataAction  There is no Action mapped for namespace [/] and action name [GetGpsDataAction] associated with context path [/car]. - [unknown location] at com.opensymphony.xwork2.DefaultActionProxy.prepare(Def…
今天在调试一个基础的Struts2框架小程序.总是提示"There is no Action mapped for namespace / and action name"的错误.上网查询后发现这是一个初学者经常碰到的问题,导致错误的原因主要有两种.总结如下: 一.struts.xml文件错误.这种错误又分为以下几种:1,struts.xml文件名错误.一定要注意拼写问题:2,struts.xml文件放置路径错误.一定要将此文件放置在src目录下.编译成功后,要确认是否编译到class…
运行:index.jsp---->input.jsp----->details.jsp,但是在input.jsp到details.jsp的时候报错误. 异常如下: 严重: Could not find action or result/There is no Action mapped for namespace [/] and action name [] associated with context path []. - [unknown location]at com.opensymp…
1.错误描写叙述 2014-7-13 2:38:54 org.apache.jasper.compiler.TldLocationsCache tldScanJar 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were fo…
果断收藏了,说的非常具体.刚開始学习的人常常遇到的问题. There is no Action mapped for namespace / and action name UserAction 在网上找了好久才找解到的方法,事实上是由于我的struts.xml文件放错了位置,server没有载入上导制. 之后将struts.xml文件移到src文件夹下就能够了. 将自己在网上的搜到的解决方式贴在这里供网友们以后解决这个问题的时候參考. 可能的原因: 1.-----首先查看你的struts.xm…
下午在eclipse中配置struts2时报: There is no Action mapped for namespace [/] and action name [Login] associated with context path [/eprint] 错误 做如下检查: 1.确保struts.xml文件名大小写正确:struts.xml 2.确保struts.xml文件在src目录下(很重要!后面就着重说这个) 附: web.xml文件内容 示例: <?xml version="…
遇到了这个错误. There is no Action mapped for namespace [/] and action name [user_find] associated with context path [/struts2_crm]. 2.5里面要在package添加如下tag <global-allowed-methods>regex:.*</global-allowed-methods> e.g. <package name="crm"…
使用struts的都知道,下面使用通配符定义的方式很常见,并且使用也很方便: <action name="Crud_*" class="example.Crud" method="{1}"> 最近更新struts版本到2.5.8时,发现无论怎么访问都无法启用通配符调用,一直在报如下错误: There is no Action mapped for namespace [/] and action name [Crud_*] assoc…
1 There is no Action mapped for namespace [/] and action name [] associated with context path [/Struts2_0300_Action2]. - [unknown location] at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185) at org.apache.struts2.impl.…
HTTP Status 404 - There is no Action mapped for namespace / and action name first. type Status report message There is no Action mapped for namespace / and action name first. description The requested resource is not available. Apache Tomcat/6.0.37 解…
eclipse使用SSH框架出现There is no Action mapped for namespace [/] and action name [] associated with context path错误,但是这个错误并没有影响程序正常运行. 看名字还以为是Action配置错误,一直在找Action的问题,也没发现配置错误,在网上搜索看到有人说要修改eclipse项目的classes文件夹,发现修改之后还是出错. 在Myeclipse中项目的classes文件夹是在\WebRoot…
初学ssh 基于注解的方式简单灵活,但是做一个例子的时候,添加用户AddUser 完成后 想页面跳转到 ListUser 这个action, 然后action 成功后 会跳转到list.jsp 显示 所以用户信息, 发现 网上几乎所有例子都是 @Result 成功跳转到一个jsp ,不成功跳转到另一个jsp @Action(value="studentAdd",results={ @Result(name="success",location="/user…
使用struts2.3进行动态方法调用时出现: There is no Action mapped for namespace [/user] and action name [user!add] associated with context path错误,原因是 (1)DMI可能导致安全问题 (2)DMI与通配符方法功能有重叠,因此该版本Struts2默认关闭DMI,需要在struts.xml中加一句 <constant name="struts.enable.DynamicMetho…
毕业设计中用maven jetty插件调试时,struts出现这个错误,直接http://localhost:8080 无法进入默认主页,但换tomcat就没问题,最后在这篇文章找到答案 http://www.kankanews.com/ICkengine/archives/45532.shtml 在struts配置中加入 <package name="home" namespace="/" extends="struts-default"…
分析:Struts2在2.5版本后添加strict-method-invocation(严格方法访问),默认为true,不能使用动态方法调用功能,故需设为false struts.xml设置如下: <package name="p1" extends="struts-default" namespace="/"strict-method-invocation="false"> <!--配置全局的结果视图--&…
1.修改action的name值 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"> <strut…
近期学习web开发时,就遇到这个令人头疼的问题. 百度谷歌了N遍,最终在博客http://blog.csdn.net/liu578182160/article/details/17266879中找到了问题的根源. 开发环境:win7 32位旗舰版,jdk1.7_45,jre7,eclipse4.3.1 JavaEE版,tomcat 7.0.42,struts2.3.16.3 问题出如今web.xml配置 原web.xml: <?xml version="1.0" encoding…
写了一个JSP项目,在配置struts2时遇到了这个错误,在网上逛了一大圈后终于解决了这个问题.具体解决方法是: 1.struts.xml的名字和位置 这里特别提一点,很多人遇到这个错误都是名字错误,比如写成struts-login.xml但又没在web.xml中进行相关配置.struts.xml是struts2的默认配置名字所以不用再web.xml中配置. 第二点是位置问题,很多人说是放在src根目录下,其实不然,在部署后的web项目中是没有这个目录的试问struts2又怎么访问这个配置文件?…
从c++转到java,初学struts,竟然碰到一个因写错单词而造成的错误,structs --> struts…
做struts2登陆检验的时候遇到了一个问题: 输入http://localhost/login_validation/的目的是想显示 文件夹下的文件列表,无奈,使用struts框架,web.xml设定了<welcome-file-list>,该<welcome-file-list>中的下的文件不存在时,将显示错误. 所以该工程本身并没有错误,只需输入完整的文件路径, http://localhost/login_validation/login.jsp 至此输入成功!…
今天碰到了这个问题,原因不明白. 在webContent下建立了index.jsp后重启项目不报错了. 原因未知.…
(自己在浏览器中,直接进入项目的根目录,即 http://localhost:8080/ssh/  时便报错,web.xml文件已经配置了 欢迎页面 <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> 并且 filter-mapping设置为 所有的url <filter-mapping> <filter-name>struts…
当在struts2中运行时出现如上所述错误时: 1.在src目录下创建struts.xml一定要注意拼写 2.struts.xml文件中引入和extend是否正确 3.在web.xml 中<welcome-file>中时候配置了自己的启动页面.…
我碰到这个错误的原因是我把配置文件名写成了Struts.xml,改成struts.xml就可以了. 在确定struts.xml本身并没有写错的情况下,那么发生错误有可能是路径,配置文件名. 如果实在找不到错误,就要看看和别人的项目到底有什么不一样.比如说文件名是否写错,文件路径是否配置对等.…
在使用Struts2的时候,遇到了这个问题. 原因分析: 找不到指定的路径, 那么就是struts.xml的内容问题, 或者是struts.xml的文件位置存在问题. struts2默认是应该放在src根目录下的, 可是由于SSH整合, 配置文件太多, 所以放在了src的config/struts2/struts.xml里面 解决方法: 人工指定struts配置文件的位置:通过在web.xml的过滤器配置中添加初始化参数 <filter> <filter-name>struts2&…
[WARN ] 2013-11-21 14:08:16 :Could not find action or resultThere is no Action mapped for namespace [/] and action name [b2bAccOcSearchInput1] associated with context path [/acode]. - [unknown location]at com.opensymphony.xwork2.DefaultActionProxy.pr…
SEVERE: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location] at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:178) at org.apache.struts2.impl.StrutsActionProxy.p…
一.Action缺省配置值 <span style="font-size:18px;"><package name="itcast" namespace="/test" extends="struts-default"> <action name="helloworld" class="cn.itcast.action.HelloWorldAction" m…
js里用jQuery.post去后台查询数据,返回的是xml格式的数据流. js代码: var params = ""; params = encodeURI(params); var url = "frame.query.action"; jQuery.post(url, params, function(xmlHttp){ var items = xmlHttp.getElementsByTagName("jg"); for (var i =…
解决如下: 将:<package name="struts2" extends="struts-default" >      <action name="login" class="com.lyw.action.LoginAction">        <result name="success">/result.jsp</result>         &…