Tag: struts2 config browser

命名空间/动作名称教程没有映射动作

我无法执行我的struts2应用程序。 我正在使用eclipse indigo IDE,tomcat 7和jdk 1.7。 我包含的jar文件是: 共享记录-1.0.4.jar, freemarker的-2.3.8.jar, ognl- 2.6.11.jar, Struts2的核心 – 2.0.11.jar, XWork的-2.0.4.jar 我将struts.xml放在WEB-INF classes文件夹中,我也试过放入 src文件夹,但我无法做到。 我在控制台上收到以下错误 There is no Action mapped for namespace / and action name tutorial. – [unknown location] 的index.jsp Insert title here Username: 在struts.xml /success.jsp /failure.jsp web.xml中 Struts2Starter struts2 org.apache.struts2.dispatcher.FilterDispatcher struts2 /* index.jsp TutorialAction.java package com.test; public class TutorialAction […]

Struts 2 – HTTP状态404 – 没有为操作定义结果

我正在尝试开发一个Struts2应用程序,其中在单击超链接时调用操作,该超链接使用Struts动作映射将用户指向hello.jsp。 我收到以下错误: HTTP Status 404 – No result defined for action com.manaar.action.HelloAction and result success 我的文件如下。 我的映射看起来像是按顺序。 我还在这里检查了其他post,但似乎无法找到这个问题的原因或解决方案。 非常感谢任何建议。 非常感谢,J index.jsp : Struts 2 Actions Welcome ! | Logout | Hello Action Add User View Users Login struts.xml : /hello.jsp HelloAction.java : /* * To change this template, choose Tools | Templates * and open […]

如何显示所有可用的Struts2操作?

我经常被要求解决struts.xml配置错误。 现在,在更新到Struts2的更高版本后,我自己遇到了这样的不匹配。 导致以下错误: No result defined for action com.opensource.project.ResourceAction and result missing 好吧,我猜可以解决。 但是,是否有一种智能方法来html打印所有可用的URL路径? 感谢这个社区猜测