struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matias Rodriguez <matias.rodrig...@gmail.com>
Subject Re: struts 2.5.2 upgrade & stream action
Date Thu, 14 Jul 2016 16:23:59 GMT
Great Łukasz, thanks again.


On Thu, Jul 14, 2016 at 1:16 PM, Lukasz Lenart <lukaszlenart@apache.org>
wrote:

> 2016-07-14 16:57 GMT+02:00 Matias Rodriguez <matias.rodriguez@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message