I'm wondering what the recommended method is for grabbing parameters from a form that are NOT part of the value/command object.
I have been using the following inside an Action class...
HttpServletRequest request = ServletEvent.getRequest( context.getSourceEvent() );
int fooId = RequestUtils.getIntParameter( request, "fooId", 1 );
However, this does mean the code is now coupled to an HTTP request (which is no worse than it was previously in a Spring FormController).
Am I missing something? I checked the RequestScope and FormScope to see if all params were being dropped into a Map, but didn't find them. This is the case where I don't want to modify the value object for the form to introduce this parameter....


Reply With Quote