There is no Action mapped for namespace / and action name Forum 好纠结的错误!

问题描述

没事写个发帖的bbs,结果一连串的错误,纠结加郁闷啊;求指点...我贴出我的一部分代码:JSP代码:<form action="Forum!insert.action" method="post" >ForumAction代码:public class ForumAction extends ActionSupport{private static final long serialVersionUID = -1512730658595600926L;private Bbs b;private List<Bbs> bbs ;private String name;//发表文章的人private String title;private String content;private String text;//发表文章public String insert() throws Exception {BbsDao bbsdao = new BbsDao();bbsdao.save(name,title,content);text = "bbs发表成功";return "insert";}set,get 省略...struts.xml代码:<package name="bbs" extends="struts-default"> <!-- 发表文章 --> <action name="insert" class="huan.action.ForumAction" method="insert"> <result name="insert">/message.jsp</result></action> </package> message.jsp代码:<body>${text}</body>报的错误是[/u][/b]:[[/i]http-8080-2] WARN [org.apache.struts2.dispatcher.Dispatcher] - Could not find action or resultThere is no Action mapped for namespace / and action name Forum. - [unknown location]网上找了好多解决办法都不行??? 问题补充:恩,可以了谢谢,顺便问一下<action name="Forum"的name是什么意思?suziwen 写道

解决方案

就是代表你那个url要提交的action名称
解决方案二:
改成这样<action name="Forum" class="huan.action.ForumAction" method="insert"> <result name="insert">/message.jsp</result> </action>

时间: 2024-12-31 18:59:52

There is no Action mapped for namespace / and action name Forum 好纠结的错误!的相关文章

HTTP Status 404 - There is no Action mapped for namespace / and action name

问题描述 HTTPStatus404-ThereisnoActionmappedfornamespace/andactionname为什么呀actionpackagecn.itcast.mybatis.action;importjava.util.List;importjava.util.UUID;importjavax.servlet.http.HttpServletRequest;importorg.apache.struts2.ServletActionContext;importcn.i

There is no Action mapped for namespace / and action name courseact 报这个错,求大神解

问题描述 在百度上搜了下原因,好像都不是.别的功能都能实现,就这个不行.在下学生党,求大神解struts配置文件如下:<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEstrutsPUBLIC"-//ApacheSoftwareFoundation//DTDStrutsConfiguration2.1//EN""http://struts.apache.org/dtds/stru

struts2之There is no Action mapped for namespace / and action name

问题描述 以前也配过很多次struts2,觉得没什么问题,可是昨天改了改tomcat的设置,现在再怎么弄都配不好了,连个helloworld都不成功了.觉得很奇怪.贴出来给哪位大牛帮我看看吧分不多,先谢谢啊.我真是郁闷到了.错误信息是:ThereisnoActionmappedforactionnamelogin.-[unknownlocation]com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java

tomcat-There is no Action mapped for namespace

问题描述 There is no Action mapped for namespace 404错误There is no Action mapped for namespace / and action name studentRegisterAction. 这是我的struts.xml 解决方案 处理方法:检查struts.xml是否在src目录下: struts.xml文件是否编写正确 .----- 首先查看你的 struts.xml? 文件是否在 src 目录下: ? 2.----- 检

action-There is no Action mapped for namespace /

问题描述 There is no Action mapped for namespace / There is no Action mapped for namespace / and action name 查了半天查不出来 一般这个错误都是404 我的事500 我写了.xml文件 也写了method方法,返回的页面也写了,但是就是报这个错误,求指导 解决方案 http://www.cnblogs.com/gulvzhe/archive/2011/11/21/2256632.html 解决方案

tomcat上面项目运行正常,weblogic下面出现•There is no Action mapped for namespace [/] and acti

问题描述 StrutsProblemReportStrutshasdetectedanunhandledexception:Messages:•ThereisnoActionmappedfornamespace[/]andactionname[adminAction]associatedwithcontextpath[/lscms].StacktracesThereisnoActionmappedfornamespace[/]andactionname[adminAction]associate

There is no Action mapped for namespace /enp and action name jobInfo

问题描述 ThereisnoActionmappedfornamespace/enpandactionnamejobInfo.-[unknownlocation]com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177)org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)org.apache.str

java ssh-no action mapped问题 tomcat运行报错

问题描述 no action mapped问题 tomcat运行报错 运行tomcat时没报错 我打了http://localhost:8080/xxpt/index.action后是404未找到 错误如下 09-29 10:07:52 WARN o.a.struts2.dispatcher.Dispatcher - Could not find action or result com.opensymphony.xwork2.config.ConfigurationException: The

struts2的问题HTTP Status 404 - There is no Action mapped for action name register.

问题描述 我的jsp<%@pagelanguage="java"import="java.util.*"pageEncoding="utf-8"%><%Stringpath=request.getContextPath();StringbasePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServ