RequestScope and request parameters
Hi,
I have the following form in my JSP page:
Code:
<form method="POST" action="flowController">
<input type="hidden" name="_flowExecutionId" value="<c:out value=${"flowExecutionId"}/>"/>
<input type="hidden" name="formatted" value="true"/>
<input type="submit" name="_eventId" value="export"/>
</form>
When this form is submitted a MultiAction is called and I expected the request parameter formatted to be in the RequestScope, but there is no such parameter(the RequestScope is empty).
I can get the paramter with this code:
Code:
context.getSourceEvent().getParamter("formatted");
but why do I need the RequestScope then?
Ok, I can store data in it to display them in a ViewAction that follows my MultiAction. But why doesn't it work the other way round? Have I done something wrong? Do I have to use a FormObject everytime I want to get RequestParameters from the RequestScope (Even If I only have an url encoded link with additional parameters)? And what's about the RequestContext.getModel() method. Again an additional way to store request data? I think I've understood what the FlowScope is all about, but I'am a little confused with the way SWF uses the RequestScope.
Clarifying words are appreciated :-)
Chris
It\'s better to be an optimist who is sometimes wrong than a pessimist who is always right!
90% of the PC problems are between the keyboard and the chair