struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Pratt" <thechrispr...@gmail.com>
Subject Re: OGNL Functions
Date Fri, 18 Jan 2008 21:46:50 GMT
On Jan 18, 2008 1:40 PM, Dave Newton <newton.dave@yahoo.com> wrote:
>
> --- Chris Pratt <thechrispratt@gmail.com> wrote:
> > Is there an OGNL Equivalent to the JSP EL Function?
> >
> > I'd like to be able to do something like:
> >
> > <s:textfield name="year" value="%{v:year(user.birthDate)}"/>
> >
> > but it doesn't seem to work.  Thanks.
>
> Do you mean calling static functions? If so, that's easy.
>
> http://struts.apache.org/2.x/docs/ognl-basics.html
>
> If not, I'm not sure what you mean.
>

Wow, that's some ugly syntax, but it should work.  Thanks.
  (*Chris*)

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


Mime
View raw message