struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From niels <>
Subject s2 : assigning a variable to jsp
Date Fri, 21 Mar 2008 11:05:09 GMT

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"/>

in advance.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message