ithoney
2012-03-16 21:49
浏览 341
已采纳

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

没事写个发帖的bbs,结果一连串的错误,纠结加郁闷啊;求指点...
我贴出我的一部分代码:
[color=red]JSP代码:[/color]

[color=red]ForumAction代码:[/color]
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 省略...

[color=red]struts.xml代码:[/color]


<!-- 发表文章 -->


/message.jsp


[color=red]message.jsp代码:[/color]


${text}

[color=red]报的错误是[/color][/u][/b]:[[/i]http-8080-2] WARN [org.apache.struts2.dispatcher.Dispatcher] - Could not find action or result
There is no Action mapped for namespace / and action name Forum. - [unknown location]
网上找了好多解决办法都不行???

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题