This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 231719

Summary: Error parsing file
Product: javascript Reporter: snaketl
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Error parsing file

Description snaketl 2013-06-24 12:37:28 UTC
Created attachment 136220 [details]
Error parsing file

When i use taglib and javascript, netbeans mark error. 

I reproduce the problem since version 7.3, including build 201306232301.

Code sample:

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        
        <script type="text/javascript">            
            <c:if test="${action == 'varTest'}">
                alert("test");
            </c:if>            
        </script>
        
    </body>
</html>
Comment 1 Vladimir Riha 2013-06-24 12:44:21 UTC
Thank you for reporting

*** This bug has been marked as a duplicate of bug 226207 ***
Comment 2 ecerichter 2013-07-03 19:21:04 UTC
Can't you use

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>

        <script type="text/javascript">            
//            <c:if test="${action == 'varTest'}">
                alert("test");
//            </c:if>            
        </script>

    </body>
</html>

It works for me!!!