不同命名空间下的Action之间跳转基于注解怎么写?

@Namespace("/app/user")
@Scope("request")
@Controller("t_app_userAction")
public class T_app_userAction extends BaseAction{
 
 
 
 @Action(value = "register", results = { @Result(name = "success",type="redirectAction",location = "manager/sys/user/loginTest")})
 public String registerUser(){
  return "success";
 }
 
}
要跳转的Action:
@Namespace("/manager/sys/user")
@Scope("request")
@Controller("sysUserAction")
public class UserAction extends BaseAction{
@Action(value="loginTest")
 public String getLoginUserTest(){
   //代码省略
    //根本进不来
  }
}
报错: There is no Action mapped for namespace [/app/user/follow!manager/sys/user] and action name [loginTest] associated with context path [/dmframedev1]

天涯尽头无女友
浏览 632回答 1
1回答

www说

sprintMVC吗?按报错来说,没有匹配到路径啊
打开App,查看更多内容
随时随地看视频慕课网APP