我想從user文件夾下的admin.left.jsp 跳轉至mail 文件夾下的writeMail.jsp 頁面
admin.left.jsp form表單action 為 mail/writeMail
執行Action類
@Namespace("/mail")
@ParentPackage("struts-default")
public class MailAction extends BaseAction {
@Action("writeMail")
public String ReceiverList(){
List list=mailServiceImpl.FindReceiverList();
super.getRequest().put("receiverList", list);
return "success";
}
}
錯誤如下:
There is no Action mapped for namespace [/user/mail] and action name [writeMail] associated with context path [/newoa].
如果我就是想實現這樣的跳轉,要怎麼實現呢?
跳轉請求action名稱不對