错误提示HTTP Status 404 - There is no Action mapped for namespace [/] and action name [enter] associated with context path [/test1].
@Action(value="enter",
results={@Result(name="success",location="/success.jsp"),
@Result(name="login",location="/index.jsp")})
public class Enter extends ActionSupport
{
能回答出来的再加20分
那个enter是我随便写的,我想访问的是Enter类不是想要它的访问方法
追答但你的报错的意思是enter 这个Action方法没有找到!
追问是啊,我想访问的是Enter类,所以随便写value=“enter”了,难道想要访问Enter类不能这么写吗,那要怎样写啊
追答恩,我们现在都是在struts.xml中配置的,使用注解这种形式的还不是很多,不能提供啥帮助了。
追问如果用xml配置我也很熟啊,不是说现在都流行注解配置吗,所以我才开始学习注解配置啊
追答哦!