Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>To answer your generic question about Spring WebFlow (SWF) and request parameters:</strong></p> <p>After receiving your first request (that includes the request parameter), Spring WebFlow is sending your browser a 302 redirect which forces another GET. This GET request does not include your original request parameters. Like you noted, you can access these parameters using the requestParameters map in your flow logic. You can then set request parameters on the viewScope or requestScope, but you should ask yourself why you need to get at these request parameters in your JSP. </p> <p>Is there logic you are performing in your view layer (JSP), that should really be performed in the controller layer (web flow)? Do you need to be binding to a model object (using the model attribute on view-state)?</p> <p>If you are only dealing with a single parameter, then you are probably ok to just set it in the view or request scope. But if you have several, maybe you need a command object that you can use as your model attribute. SWF would handle binding the parameters to this object, and would expose this object to the view that you are redirected to.</p> <p><strong>More specifically, regarding Spring Security/login:</strong></p> <p>It appears that you may be trying to implement your login page as an actual webflow... I would take a look at the SWF documentation, it has a short chapter about securing webflows. The login page/process would not be defined as a state in your flow.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload