0
我想將值傳遞給重定向的操作。即在我的下面的代碼中,我想將userResult值傳遞給welcome方法,我該如何傳遞它?Spring MVC PRG,將值傳遞給其他操作
String userResult = getUserDetails(url);
System.out.println("Result-->"+userResult);
if(userResult.contains("<user>")){
return "redirect:welcome";
}
重定向代碼:
@RequestMapping(value = "/welcome")
public String welcome(Model model){
Element element = getOutputDetails(userResult);// get userResult values here
如果包括爲什麼閃光燈屬性都應當我會給予好評。僅添加鏈接是不夠的。 – Bart