Check out the set [1] and property [2] tags. It might also be useful to read about the tag syntax [3]
[1] - http://struts.apache.org/2.x/docs/set.html [2] - http://struts.apache.org/2.x/docs/property.html [3] - http://struts.apache.org/2.x/docs/tag-syntax.html Nils-H On Fri, Mar 21, 2008 at 12:05 PM, niels <[EMAIL PROTECTED]> wrote: > 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]

