struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Musachy Barroso <musa...@gmail.com>
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}" />

musachy

On Sun, Nov 15, 2009 at 12:00 PM, Chris Cranford <crancran@gmail.com> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message