<s:set var="myname" value="%{'John Galt'}" /> musachy
On Sun, Jan 4, 2009 at 3:42 PM, David Erickson <halcyon1...@gmail.com> wrote: > Is there a way to use literal strings with s:set? I have tried it and > it appears to only take the name of an ognl variable reference used to > set as the new variable. > > -David > > On Sun, Jan 4, 2009 at 11:59 AM, Dave Newton <newton.d...@yahoo.com> wrote: >> Couldn't you just use <s:set...> and concatenate the strings using OGNL? >> >> Dave >> >> >> >> ----- Original Message ---- >>> From: David Erickson <halcyon1...@gmail.com> >>> To: user@struts.apache.org >>> Sent: Sunday, January 4, 2009 2:28:06 PM >>> Subject: [S2] Easy way to create and place a String into page context built >>> using s:property tags? >>> >>> Hi all, >>> I would like to use the struts tag libraries to instantiate a String >>> that is composed of static text as well as multiple other struts >>> properties, something akin to: >>> >>> <s:bean name="java.lang.String" id="anId"> >>> aProp: '<s:property value="aPropValue"/>', aProp2: >>> '<s:property value="aPropValue2"/>' >>> </s:bean> >>> >>> However I see no way to set the constructor on the String class using >>> any of the existing Struts tags. Can anyone enlighten me on an easy >>> and clean way to do this? >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org