redirect可以像下面那样传参数吗?
return "redirect:/platform/home?a="+a+"&b="+b+"&c="+c;
redirect可以像下面那样传参数吗?
return "redirect:/platform/home?a="+a+"&b="+b+"&c="+c;
@Ok("re")
public String home() {
........
........
return "redirect:/platform/home?a="+a+"&b="+b+"&c="+c;
}
login传到home还是空的
@At("")
@Ok("re")
@Filters
public String login(HttpServletRequest req,HttpSession session) {
log.debug("");
Subject subject = SecurityUtils.getSubject();
if (subject.isAuthenticated()) {
String c="0";
String a= "0";
String b= "0";
return "redirect:/platform/home?req="+req+"&session="+session+"&a="+a+"&b="+b+"&c="+c;
} else {
return "beetl:/platform/sys/login.html";
}
}
@At("")
@Ok("re")
@RequiresAuthentication
public void home(HttpServletRequest request,HttpSession session,String a,String b,String c) {
}
@wendal 哪里写的有问题吗?