facebook

Bogus JSP validation error on JSTL functions with no parms

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #297271 Reply

    Larry Gerndt
    Member

    MyEclipse 7.1.1 – I’m seeing EL Syntax Error for this line of code:

    <c:if test="${!qf:isDiwaliUrl()}">

    This happens for any JSTL function that takes no parameters. I think it’s a MyEclipse bug, because the function does work correctly despite Eclipse flagging it as syntax error. Anyone else seeing this?

    #297331 Reply

    Loyal Water
    Member

    Can you paste a sample file here for me and let me know what editor you are working with so that I can ask the dev team to look into this issue.

    #297344 Reply

    I’m experiencing this problem too.
    I’m using the “MyEclipse Visual JSP Designer” editor.

    How to reproduce this bug is detailed bellow.

    In the JSP :

    
    <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="ee" uri="http://example.com/execenv" %>
    
    <c:out value="${ee:getExecEnvType()}"/>
    

    In the “META-INF/execenvtags.tld” file :

    
    <?xml version="1.0" encoding="UTF-8"?>
    <taglib version="2.1" xmlns="http://java.sun.com/xml/ns/javaee"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://java.sun.com/xml/ns/javaee web-jsptaglibrary_2_1.xsd">
        <tlib-version>1.0</tlib-version>
        <short-name>Execution Environment tags</short-name>
        <uri>http://example.com/execenv</uri>
    
        <function>
            <description>Returns the current execution environment type (i.e. DEVEL, TEST, HOMOLO, or PROD)</description>
            <display-name>getExecEnvType</display-name>
            <name>getExecEnvType</name>
            <function-class>com.example.executionenvironment.ElFunctions</function-class>
            <function-signature>java.lang.String getExecEnvType()</function-signature>
        </function>
    
    </taglib>
    

    And in the “ElFunctions.java” file, of the “com.example.executionenvironment” package, getExecEnvType() is a static method taking no parameters and returning some java.lang.String, whatever it is.

    #297361 Reply

    Loyal Water
    Member

    I filed a PR for the dev team. We will try and resolve this asap.

    #297371 Reply

    Larry Gerndt
    Member

    Thank you, Nipun, and thank you bgandon for posting the example!

    #297405 Reply

    Loyal Water
    Member

    Your welcome.

    #301455 Reply

    jedi82
    Member

    Hi Everybody!
    I’m experiencing the same “EL Syntax Error” in MyEclipse 7.5.
    Is there any work around?
    Will this be fixed in the nearest future?

    Thanks for replies in advance!

    #301467 Reply

    support-joy
    Member

    jedi82,
    We have already raised a PR for this issue.
    We don’t have any workaround for this issue.
    Please look out for ME8.0 release.
    My only suggestion if you want to subdue this issue is to right click on the jsp file and go to “MyEclipse–>Exclude from validation”.
    Sorry for the inconvenience caused.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Bogus JSP validation error on JSTL functions with no parms

You must be logged in to post in the forum log in