struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Toni Lyytikäinen" <tol...@gmail.com>
Subject Re: HTML Encoding in Struts2
Date Wed, 01 Aug 2007 09:17:39 GMT
http://struts.apache.org/2.x/docs/property.html

The property tag escapes the string by default. Try <s:property
escape="false" />

On 8/1/07, Sawan <sawan.k.sharma@gmail.com> wrote:
>
>
> 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
>
>
> --
> View this message in context:
> http://www.nabble.com/HTML-Encoding-in-Struts2-tf4198863.html#a11942087
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message