2016-07-14 16:57 GMT+02:00 Matias Rodriguez <matias.rodrig...@gmail.com>:
> Hi everyone!
>
> I've upgraded to struts 2.5.2 (from 2.5.1 working OK) and getting an error
> for a "stream action":
>
>
> *java.lang.IllegalArgumentException: Can not find a java.io.InputStream
> with the name [inputStream] in the invocation stack. Check the <param
> name="inputName"> tag specified for this action.*
> *        at
> org.apache.struts2.result.StreamResult.doExecute(StreamResult.java:233)*
> *        at
> org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:208)*
>
> I'm specifying the input stream name using the action method:
>     public String getInputName() {
>         return "respuesta";
>     }
>
> But it seems to not being used. Won't be supported anymore?

This was changed as a potentially dangerous behaviour, right now you
must explicitly define params which must be evaluated, i.e.
<result name="success" type="stream">
  <param name="inputName">${inputName}</param>
</result>

https://issues.apache.org/jira/browse/WW-4655
https://cwiki.apache.org/confluence/display/WW/Stream%20Result


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to