Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

HTML Encoding in Struts2

Sawan

2007-08-01

Replies:


Hi experts,

I have following code...

JAVA:
ArrayList obj = new ArrayList();  
obj.add(" www.google.com Visit google ");
obj.add(" www.yahoo.com Visit yahoo ")

JSP:
<s:iterator value = "obj ">            
  <s:property />
</s:iterator>

On jsp page source, I am getting "&lt;a
href=&quot;www.google.com&quot;&gt;Visit google&lt;/a&gt;" and
"&lt;a href=&quot;www.yahoo.com&quot;&gt;Visit yahoo&lt;/a&gt;"

So it is not linking "Visit google" and "Visit yahoo", instead of it is
showing the whole string " www.google.com Visit google " and www.yahoo.com
Visit yahoo .

How can I make both linkable..?

Thanks in advance

Sawan

     
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.