Hi,
I am trying to create a file and then download it to the users browser.
When the user clicks on a filename in a jsp-page a getFile method in my
MultiAction subclass is called. This metod creates the file and then it
redirects to an URL that can display the file. The redirect looks like this:
My flow xml file looks like this:Code:String url = "download.do?type=file&period=" + info.getTabellInfo().getPeriod() + "&filename=" + fileName; ((ServletExternalContext)context.getExternalContext()).getResponse().sendRedirect(url);
The file gets displayed in the browser, but the problem is that there is anHTML Code:view-state id="bekrafta" view="flows/bekrafta"> <render-actions> <action bean="formAction" method="setupForm"/> </render-actions> <transition on="previous" to="preGor" /> <transition on="next" to="postBekrafta"> <action bean="formAction" method="bindAndValidate"> <attribute name="validatorMethod" value="validateGor"/> </action> </transition> <transition on="getFile" to="getFile"/> </view-state> <action-state id="getFile"> <action bean="gorAction"/> <transition on="success" to="preBekrafta"/> </action-state>
exception on the server: java.lang.IllegalStateException "Request processing
failed". Is it because you canīt do both a redirect and have a transition in
the getFile action??? Or.....???
I use Spring web Flow 1.0.2.
Thanks! :-)


Reply With Quote
