ajax 如何使用不同的namespace的action 由于我的question_save于/question命名空间,一世ajax的url成:"../question/question_save.aciton" 若我把aciton映射为了html.那一定要写成 ajax的url: "../question/question_save.html" 这是我的教训啊,非常深非常深的教训啊,特别是总是出现ajax 怎样使用不同namespace的action 和the…
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…
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.…
今天在调试一个基础的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…
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 解…
果断收藏了,说的非常具体.刚開始学习的人常常遇到的问题. There is no Action mapped for namespace / and action name UserAction 在网上找了好久才找解到的方法,事实上是由于我的struts.xml文件放错了位置,server没有载入上导制. 之后将struts.xml文件移到src文件夹下就能够了. 将自己在网上的搜到的解决方式贴在这里供网友们以后解决这个问题的时候參考. 可能的原因: 1.-----首先查看你的struts.xm…
简单的介绍下Struts2中的几个简单的问题(namespace.action.以及path问题) namespace(命名空间) Namespace决定了action的访问路径,默认为“”,意味着可以访问所有目录下的/ass/sss/ss/index;囊括了所有package处理不了的action: namespace可以写成/,或是/xx./xx/yy,对应action访问路径为/index.action,/xx/index.action或是/xx/yy/index.action Packa…
ACTION package actions; import com.opensymphony.xwork2.ActionSupport; import net.sf.json.JSONObject; import pojo.Goods; import service.GoodsService; public class GoodsAction extends ActionSupport { //定义msg数组传值到ajax private String []msg = new String[]…
SSH整合,照着视频敲的,不知为何会报错,经历了快两周的折磨给解决了.记录下来给后面需要帮助的人,也算极好的了. Struts Problem Report Struts has detected an unhandled exception: Messages: employeeAction Unable to instantiate Action, employeeAction, defined for 'emp-list' in namespace '/'employeeAction Fi…
下午在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="…
struts.xml配置 struts.xml文件是整个Struts2框架的核心. struts.xml文件内定义了Struts2的系列Action,定义Action时,指定该Action的实现类,并定义该Action处理结果与视图资源之间的映射关系. <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation…
eclipse使用SSH框架出现There is no Action mapped for namespace [/] and action name [] associated with context path错误,但是这个错误并没有影响程序正常运行. 看名字还以为是Action配置错误,一直在找Action的问题,也没发现配置错误,在网上搜索看到有人说要修改eclipse项目的classes文件夹,发现修改之后还是出错. 在Myeclipse中项目的classes文件夹是在\WebRoot…
struts2.0 xml配置 struts.xml文件结构 struts.xml文件是整个Struts2框架的核心. struts.xml文件内定义了Struts2的系列Action,定义Action时,指定该Action的实现类,并定义该Action处理结果与视图资源之间的映射关系. <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache S…
遇到了这个错误. 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"…
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…
使用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…
使用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…
写了一个JSP项目,在配置struts2时遇到了这个错误,在网上逛了一大圈后终于解决了这个问题.具体解决方法是: 1.struts.xml的名字和位置 这里特别提一点,很多人遇到这个错误都是名字错误,比如写成struts-login.xml但又没在web.xml中进行相关配置.struts.xml是struts2的默认配置名字所以不用再web.xml中配置. 第二点是位置问题,很多人说是放在src根目录下,其实不然,在部署后的web项目中是没有这个目录的试问struts2又怎么访问这个配置文件?…
近期学习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…
从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&…