struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Musachy Barroso <musa...@gmail.com>
Subject Re: Convention Plugin - Setting dynamic parameter values
Date Fri, 16 Oct 2009 16:29:05 GMT
when you declare a result using annotations, the param values can
contain OGNL values, just like in xml,:

 @Action(value="/different/url",
    results={@Result(name="success", type="httpheader",
params={"status", "%{status}", "errorMessage", "%{error}"})}
  )
  public String execute() {
    return SUCCESS;
  }

On Fri, Oct 16, 2009 at 2:22 AM, RogerV <roger.varley@googlemail.com> wrote:
>
> Hi
>
> I'm tying to define a stream result using the convention plugin. The values
> for the contentLength and inputName require dynamic values. Obviously I
> know, for example, the length of the data stream within my action, but how
> do I  code this so either the @Annotation or the StreamResult can get the
> data from my action - or have I hit the limits of the convention plugin.
>
> Regards
> --
> View this message in context: http://www.nabble.com/Convention-Plugin---Setting-dynamic-parameter-values-tp25922320p25922320.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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


Mime
View raw message