Thanks, and sorry for sending that to the wrong list, it was mean for the users list...
>-----Original Message----- >From: Wes Wannemacher [mailto:[email protected]] >Sent: Tuesday, August 25, 2009 12:55 PM >To: Struts Developers List >Subject: Re: Literal in OGNL > >just put single quotes around it and OGNL will treat it like a string - > ><s:url var="day_url" action="historyChart"><s:param name="period" > value="%{'day'}"/></s:url> > <s:url var="month_url" action="historyChart"><s:param name="period" > value="%{'month'}"/></s:url> > <s:url var="year_url" action="historyChart"><s:param name="period" > value="%{'year'}"/></s:url> > >On Tue, Aug 25, 2009 at 12:53 PM, Security >Management<[email protected]> wrote: >> In the following, I want the param value to be "day" or "month" >literally. >> How does that work? >> >> This does not: >> >> <s:url var="day_url" action="historyChart"><s:param name="period" >> value="%{day}"/></s:url> >> <s:url var="month_url" action="historyChart"><s:param name="period" >> value="%{month}"/></s:url> >> <s:url var="year_url" action="historyChart"><s:param name="period" >> value="%{year}"/></s:url> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > >-- >Wes Wannemacher > >Head Engineer, WanTii, Inc. >Need Training? Struts, Spring, Maven, Tomcat... >Ask me for a quote! > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [email protected] >For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
