Spring forward with added parameters?

后端 未结 4 706
我在风中等你
我在风中等你 2020-12-01 03:57

Is there a way to forward a request to another Controller while adding some parameter data to it? I tried adding to the ModelMap, but it doesn\'t seem to hang around. I am d

4条回答
  •  Happy的楠姐
    2020-12-01 04:15

    Consider forward just like redirect but without the need for a context and host in this sense (forward is handled internally by the server, whereas redirect instructs the user's browser to request a different url).

    So, yes, use the session, cookies or post or get parameters.

提交回复
热议问题