struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Musachy Barroso <>
Subject Re: Struts Tag Odd Behavior
Date Sun, 15 Nov 2009 20:08:11 GMT
that is odd indeed, can you give us an example that shows this
problem? The way to set a variable is by using the "set" tag, like

<s:set var="id" value="%{'somestring'}"/>
<s:property value="%{#id}" />


On Sun, Nov 15, 2009 at 12:00 PM, Chris Cranford <> wrote:
> So in my JSP i have defined a s:set tag which populates a variable
> with an empty string in some cases.  And when using the s:property
> referencing the variable name on the stack, I get the following
> output:
> com.opensymphony.xwork2.DefaultTextProvider@28ca1c
> What is the proper way to assign a text string to a variable on the
> stack and when it is popped off the stack for display, it is shown as
> a blank 0 length text string rather than a reference to the class?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message