Quoting Chandra Avutu <[EMAIL PROTECTED]>: > I am using JSTL c:out tag to print server messages into HTML pages. However > some of the messages contains apostrophe. Due to special chars the JSTL > c:out > tag was breaking. The following message from server breaks <c:out> tag. > "Invalid datastore path 'No_Floppy.flp'." Is there any was I can fix this. > Thanks, Chandra
I'm not sure why this isn't working for you, but here's an example to demonstrate that escaping should be taking place. Try this page: <%@ page contentType="text/plain" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <c:set var="chars">& < > " '</c:set> Escaped chars: <c:out value="${chars}"/> Unescaped chars: <c:out value="${chars}" escapeXml="false"/> The output should look like: Escaped chars: & < > " ' Unescaped chars: & < > " ' -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]