- This topic has 7 replies, 5 voices, and was last updated 15 years, 6 months ago by
support-joy.
-
AuthorPosts
-
Larry GerndtMemberMyEclipse 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?
Loyal WaterMemberCan 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.
Benjamin GandonMemberI’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.
Loyal WaterMemberI filed a PR for the dev team. We will try and resolve this asap.
Larry GerndtMemberThank you, Nipun, and thank you bgandon for posting the example!
Loyal WaterMemberYour welcome.
jedi82MemberHi 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!
support-joyMemberjedi82,
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. -
AuthorPosts