struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stanl...@gmail.com
Subject Re: Dynamic Results
Date Thu, 14 Feb 2008 23:16:57 GMT
D --

Have you ever been asked to write children's books?  :-)

S

On Thu, Feb 14, 2008 at 4:33 PM, Dave Newton <newton.dave@yahoo.com> wrote:

> --- stanlick@gmail.com wrote:
> > I understand the quirky plug-in, but that does not explain
> > why OGNL is looking for a setHeight(String) on ChartResult!
>
> Because parameters can be for the result (for example, FreeMarkerResult's
> "contentType" parameter).
>
> > I am puzzled at why S2 is not executing getHeight() on my
> > ChartAction and substituting the height and weight into
> > these params.
>
> I already told you; the JFreeChart result class doesn't parse parameters.
> Evaluating parameters isn't a "it just happens" thing, it's dependent on
> how
> the result is coded.
>
> If you look at the code for StrutsResultSupport you'll see that there's a
> method called conditionalParse() that handles that. The JFreeChart result
> does not extend StrutsResultSupport; it is simply an implementation of
> Result, and therefore does not evaluate expressions contained in its
> parameters.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Scott
stanlick@gmail.com

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