struts2 注解怎么使用?我用注解做了个防止重复提交,可是怎么进不了action了?
2个回答
展开全部
@InterceptorRefs( { @InterceptorRef(value = "crudStack"),
@InterceptorRef(value = "token",params={"includeMethods","save"})})
@Results( {
@Result(name = "invalid.token", location = "all_text!fullText.action?archivesId=${archivesId}", type = "redirect"))
在action加这个
@InterceptorRef(value = "token",params={"includeMethods","save"})})
@Results( {
@Result(name = "invalid.token", location = "all_text!fullText.action?archivesId=${archivesId}", type = "redirect"))
在action加这个
展开全部
你把你的注解发上来啊
追问
@Action(value = "saveCont", results = {@Result(name = "addCont", type = "chain", location = "findAllCont"),@Result(name = "input", location = "/WEB-INF/pages/contacts/addContacts.jsp") })
public String saveCont() {
//添加操作
}return "addCont";}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询