Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322523

Summary: JSP error incorrectly reported when using taglib with an empty nested element inside an HTML attribute
Product: [WebTools] WTP Source Editing Reporter: Aurélien ouderc <zecoucou>
Component: jst.jspAssignee: jst.jsp <jst.jsp-inbox>
Status: CLOSED DUPLICATE QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Aurélien ouderc CLA 2010-08-12 08:49:55 EDT
Build Identifier: 20100617-1415

This is a regression since Helios, it worked correctly in former versions.

The following code illustrates the problem :

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<body>
<!-- OK -->
<a href="<c:url value="/my_url.do" />">My link</a>

<!-- OK -->
<a href="<c:url value="/my_url.do"><c:param name="myparam" value="${myValue}"></c:param></c:url>">My link</a>

<!-- JSP error -->
<a href="<c:url value="/my_url.do"><c:param name="myparam" value="${myValue}" /></c:url>">My link</a>
</body>
</html>


Reproducible: Always

Steps to Reproduce:
1. Create a basic webapp.
2. Paste the code above in a JSP file.
3. Check the « Problems » window, there is a JSP error with an empty message.
Comment 1 Nick Sandonato CLA 2010-08-12 09:35:34 EDT
Thanks for your report. This is addressed in Bug 315051.

*** This bug has been marked as a duplicate of bug 315051 ***
Comment 2 Aurélien ouderc CLA 2010-08-12 09:51:28 EDT
Fixed indeed in 3.2.1, thank you for the fast update.