tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Kashin <...@exch.inec.kharkov.com>
Subject Re[2]: c:out outputting HTML
Date Thu, 15 May 2003 14:39:36 GMT
Hello

Try escapeXml="false"
>> Part of your problem might be those funky Strings you
>> tried to stuff into the Vector.  If you're going to
>> have a double quote inside a Java String, I think you
>> have to escape it, like this:
>> 
>> v.add("<a href=\"1.html\">aaaa</a>");
>> 

dfcb>   Michael this was only a typo I did when typing the e-mail.
dfcb>   In fact, I use single quotes, with double quotes the code do not compile, 
dfcb> like this :

dfcb> v.add("<a href='1.html'>aaaa</a>");

dfcb>   The problem is c:out is replacing the < and > chars with a scape sequence
so 
dfcb> this is what I got on my html source on the browser :

dfcb> &lt;a href=&#039;1.html&#039;&gt;aaaa&lt;/a&gt;

dfcb>   But I want the real link on the page without this & chars.
dfcb>   Any help ?

dfcb>   Danilo.

>> See if that helps. - MOD
>> 
>> --- danilo@floripa.com.br wrote:
>> >   Hi,
>> > 
>> >   In my server I set a collection of strings on my
>> > session :
>> > 
>> >   Vector v = new Vector();
>> >   v.add("<a href="1.html">aaaa</a>");
>> >   v.add("<a href="2.html">bbbb</a>");
>> >   v.add("<a href="3.html">cccc</a>");
>> > 
>> >   request.getSession().setAttribute("attr",v);
>> > 
>> >   On my JSP page I am using c:forEach and c:out to
>> > output this on my page.
>> >   But it put some scape chars on it. I want to
>> > really create the links on my 
>> > page. 
>> >   How I can do it ?
>> > 
>> >   Danilo.
>> > 
>> > 
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> > taglibs-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail:
>> > taglibs-user-help@jakarta.apache.org
>> > 
>> 


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


Mime
View raw message