jsp - How to send modal attribute to a redirected page in spring mvc -
java:
@requestmapping(value = "/home.htm", method = requestmethod.get) public string home(modelmap model, httpsession session, @requestparam("userid") string userid) { seek { model.addattribute("userid", userid); string redirecturl = "http://localhost:8081/app/home.htm"; homecoming "redirect:" + redirecturl; } grab (exception e) { // todo auto-generated grab block e.printstacktrace(); } homecoming null; } jsp:
<div class="position-relative"> <h1> ${userid} </h1> </div> here when redirected home page, modal attributes appended url parameters. need attribute in home page. how possible? or there way pass info redirected page without appending url parameter.
please suggest method.
spring jsp spring-mvc
No comments:
Post a Comment