Rahul P Akolkar wrote the following on 10/21/2004 7:10 PM:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%-- --%><tag attr="foo('<jsp:include page="test.jsp" />')"><%-- --%><anotherTag />
where test.jsp is another trivial JSP as follows:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%-- --%>A, <c:if test="${true}"><%-- --%>B, <%-- --%></c:if>C
I don't have a newline after "</c:if>C",
remember that's not where I'm getting the new line. In your example I'd be getting it after the 'C' below:
and I get this output:
<tag attr="foo('A, B, C')"><anotherTag />
Interesting because when I have a JSP with:
onmouseover="return overlib('<c:import url="/test.jsp"/>');"
Where test.jsp in this case is just
1,2,3,4<----NO BREAK AT ALL AFTER THIS. END OF FILE.
I end up with a break in the output HTML source code STILL after the 4 so that it becomes...
onmouseover="return overlib('1,2,3,4<--- BREAKS HERE ');"
Now why it doesn't work for you is another issue. I'm using Tomcat and Emacs.
I'm stumped also. I'm on windows. I can pull up the file and search for a new line break in test.jsp and not get one. I don't believe the problem is in any break in the tag file.
-- Rick
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]