Note that there are some explanatory texts on larger screens.

plurals
  1. POSpring webflow 1.0 - Downloading a file
    primarykey
    data
    text
    <p>I am using spring webflow 1.0. I am uploading a csv file, parsing it, and displying results before proceeding. The user has an option to download a csv file that contains the records that did not pass validation. When I click the link in a JSP to download this file, webflow invokes a form Action. The form action writes out a file via getting the output stream off the response:</p> <p><code>HttpServletResponse response = ((ServletExternalContext) context.getExternalContext()).getResponse();</code></p> <p>I do not want to leave the jsp I'm currently on. I just want to download the file. In other words, I do not want to transition to another state. I just want to serve the dynamically rendered file. Everything works (I don't leave the page, and I download the file), but I'm getting the following error in my console:</p> <pre><code>_pEncydKfggPHJo8=org.springframework.webflow.engine.NoMatchingTransitionException: No transition was matched on the event(s) signaled by the [1] action(s) that executed in this action state 'downloadErrorReportAction' of flow 'myFlow'; transitions must be defined to handle action result outcomes -- possible flow configuration error? Note: the eventIds signaled were: 'array&lt;String&gt;[[null]]', while the supported set of transitional criteria for this action state is 'array&lt;TransitionCriteria&gt;[[empty]]' at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:187) at org.springframework.webflow.engine.State.enter(State.java:191) at org.springframework.webflow.engine.Transition.execute(Transition.java:212) at org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:107) at org.springframework.webflow.engine.Flow.onEvent(Flow.java:534) Truncated. see log file for complete stacktrace </code></pre> <p>Here is the relevant portion of my webflow config.</p> <pre><code>&lt;view-state id="showUploadResults" view="UploadResults3.0"&gt; &lt;render-actions&gt; &lt;action bean="UploadResultsAction" method="transitionToWebflow"/&gt; &lt;action bean="UploadResultsAction" method="setupData"/&gt; &lt;/render-actions&gt; &lt;transition on="submit" to="proceed"/&gt; &lt;transition on="downloadErrorReport" to="downloadErrorReportAction"/&gt; &lt;/view-state&gt; &lt;action-state id="downloadErrorReportAction"&gt; &lt;action bean="UploadResultsAction" method="downloadErrorReport" name="downloadErrorReport"/&gt; &lt;/action-state&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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