Hm,
want the otherway around.

something like:
<s:set name="technologyName" value="%{'Java'}"/>
<%= technologyName %>


On Mar 21, 2008, at 12:11 PM, Deepak Kumar wrote:

Hi,

In Struts 2 you can use <s:set tag.

Check the example at
http://www.roseindia.net/struts/struts2/struts2controltags/set-tag.shtml

Thanks


-----Original Message-----
From: niels [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2008 4:35 PM
To: user@struts.apache.org
Subject: s2 : assigning a variable to jsp


Hello,

I want to assign a property to a value in jsp.

in struts 1.3 i could do it like:

<bean:define id="assign" name="somename" property="userName"
type="java.lang.String" />

Now I can access the variable via:  <%=assign%>

How can i accomplish this in struts2 for a property:
<s:property value="userName"/>


thanks
in advance.

Niels


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to