struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samsun <greg.zh...@barcap.com>
Subject Re: iterator tag: how to interpret the property value which are html
Date Tue, 06 Oct 2009 16:25:53 GMT

i got 
< b > java  < / b> 

back


samsun wrote:
> 
> I would like put my question simply like this:
> 
> in jsp,
> 
> <%! String test="java"; %>
> <%=test%>
> i got bold Java  
> 
> try to have same thing from struts2 
> 
> <s:set name="test" value="%{'java'}"> 
> <s:property value="#test" />  i got
> java back,which is not what i want
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> samsun wrote:
>> 
>> 
>> 
>> samsun wrote:
>>> 
>>> I have to iterate thru a list of strings, some of the string element
>>> include html tag
>>> like &lt;b>Copmany Names:&lt;/b>   it print out litterlly like
this
>>>  Copmany Names:, not the bolded word Company Names:
>>> 
>>> here is what the iterate tag look like
>>> <s:iterator value="CompanyNames" status="stat">
>>> 	<tr>
>>> 	<td><s:property /> <br>
>>> 	</td>
>>> 	</tr>
>>> </s:iterator>
>>> 
>>> btw, the CompanyNames is getting from other application's database, all
>>> the html tags are mixed in beyond
>>> my control, so have to display what is there.
>>> 
>>> 
>>> Thanks
>>> Sam
>>> 
>>> 	  
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/iterator-tag%3A-how-to-interpret-the-property-value-which-are-html-tp25769502p25772037.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message