facebook

Validator: JSP Tag Attributes Default to rtexprvalue=false

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #329882 Reply

    Lee Haslup
    Participant

    I seem to be seeing this bug when I validate my JSPs that use runtime expressions in tag attribute values:

    https://bugs.eclipse.org/bugs/show_bug.cgi?id=302060

    Unless I explicitly define all tag attributes with rtexprvalue=”true” I get a “does not support runtiime expressions” warning every time I use a runtime expression for the tag attribute value.

    Is there a patch or a workaround for this problem?

    #329890 Reply

    support-swapna
    Moderator

    BigLeeH,

    Sorry that you are seeing this issue. I could not replicate the issue on MyEclipse 10.6 version.

    1. Can you please copy paste the Installation Details from MyEclipse > Installation Summary > Installation Details ?

    2. If you are not on 10.6, can you please update to 10.6 and check if you still see the issue ?
    The license you currently hold is valid for 10.6 too as our licenses are time based and not version based.

    3. If you are still seeing issues on 10.6, can you please list out the steps in detail you are following for us to help replicate the issue at our end ?

    Let us know how it works for you.

    #329912 Reply

    Lee Haslup
    Participant

    Let’s see…

    1. Can you please copy paste the Installation Details from MyEclipse > Installation Summary > Installation Details ?

    *** Date: 
    Thursday, September 6, 2012 2:52:51 PM EDT
    
    *** System properties:
    OS=WindowsVista
    OS version=6.1.0
    OS arch=x86
    Profile arch=x86
    Window system=win32
    Java version=1.6.0_13
    Workspace=file:/C:/Users/haslup/Workspaces/ME10_Test/
    VM Args=-Xmx768m
    -XX:MaxPermSize=384m
    -XX:ReservedCodeCacheSize=64m
    -Dosgi.nls.warnings=ignore
    -Djava.class.path=C:\Users\haslup\AppData\Local\MYECLI~2\../MYECLI~1/Common/plugins/ORB7B5~1.JAR
    
    
    
    *** Subscription information
    Product Id: E3MP (MyEclipse Professional Subscription)
    License version: 3.0
    Full Maintenance Included
    Subscription expiration date (YYYYMMDD): 20130713
    Number of users: 1
    
    *** Eclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 10.6
    Build id: 10.6-20120727
    
    
    Blueprint: MyEclipse 10
    
    com.genuitec.myeclipse.database - 10.6.0.me201207261914
    com.genuitec.myeclipse.desktop - 10.6.0.me201207261914
    com.genuitec.myeclipse.editor - 10.6.0.me201207261914
    com.genuitec.myeclipse.enterprise.workbench - 10.6.0.me201207261914
    com.genuitec.myeclipse.geronimo - 10.6.0.me201207261914
    com.genuitec.myeclipse.glassfish - 10.6.0.me201207261914
    com.genuitec.myeclipse.icefaces.feature - 10.6.0.me201207261914
    com.genuitec.myeclipse.iedebugger - 10.6.0.me201207261914
    com.genuitec.myeclipse.imageeditor - 10.6.0.me201207261914
    com.genuitec.myeclipse.jboss - 10.6.0.me201207261914
    com.genuitec.myeclipse.jetty - 10.6.0.me201207261914
    com.genuitec.myeclipse.jonas - 10.6.0.me201207261914
    com.genuitec.myeclipse.jrun - 10.6.0.me201207261914
    com.genuitec.myeclipse.jsf - 10.6.0.me201207261914
    com.genuitec.myeclipse.matisse - 10.6.0.me201207261914
    com.genuitec.myeclipse.maven - 10.6.0.me201207261914
    com.genuitec.myeclipse.oracle - 10.6.0.me201207261914
    com.genuitec.myeclipse.orion - 10.6.0.me201207261914
    com.genuitec.myeclipse.persistence - 10.6.0.me201207261914
    com.genuitec.myeclipse.pulse - 10.6.0.me201207261914
    com.genuitec.myeclipse.reports - 10.6.0.me201207261914
    com.genuitec.myeclipse.resin - 10.6.0.me201207261914
    com.genuitec.myeclipse.struts - 10.6.0.me201207261914
    com.genuitec.myeclipse.sun - 10.6.0.me201207261914
    com.genuitec.myeclipse.tomcat - 10.6.0.me201207261914
    com.genuitec.myeclipse.uml2 - 10.6.0.me201207261914
    com.genuitec.myeclipse.visualvm - 10.6.0.me201207261914
    com.genuitec.myeclipse.visualvm.server - 10.6.0.me201207261914
    com.genuitec.myeclipse.weblogic - 10.6.0.me201207261914
    com.genuitec.myeclipse.websphere - 10.6.0.me201207261914
    com.genuitec.myeclipse.ws - 10.6.0.me201207261914
    org.eclipse.birt - 2.6.1.me201207261914
    org.eclipse.datatools.connectivity.feature - 1.9.0.me201207261914
    org.eclipse.datatools.enablement.feature - 1.9.0.me201207261914
    org.eclipse.datatools.modelbase.feature - 1.9.0.v201106031100-77078CcNBHCBYKYEbNV
    org.eclipse.datatools.sqldevtools.feature - 1.9.0.me201207261914
    org.eclipse.emf - 2.7.0.v20110606-0949
    org.eclipse.gef - 3.7.0.v20110425-2050-777D-81B2Bz0685C3A6E34272
    org.eclipse.graphiti.feature - 0.8.0.v20110607-1252
    org.eclipse.jpt.jpa.feature - 3.0.0.me201207261914
    org.eclipse.jpt.jpadiagrameditor.feature - 1.0.0.me201207261914
    org.eclipse.jst.common.fproj.enablement.jdt - 3.3.0.me201207261914
    org.eclipse.jst.enterprise_ui.feature - 3.3.0.me201207261914
    org.eclipse.jst.server_adapters.ext.feature - 3.3.0.me201207261914
    org.eclipse.jst.server_adapters.feature - 3.2.100.me201207261914
    org.eclipse.jst.server_ui.feature - 3.3.0.me201207261914
    org.eclipse.jst.ws.axis2tools.feature - 1.1.200.me201207261914
    org.eclipse.m2e.feature - 1.0.0.me201207261914
    org.eclipse.sapphire.platform - 0.3.0.201106221325
    org.eclipse.wst.common.fproj - 3.3.0.me201207261914
    org.eclipse.wst.server_adapters.feature - 3.2.100.me201207261914
    org.eclipse.xsd - 2.7.0.v20110606-0949
    org.springframework.ide.eclipse.feature - 2.9.1.me201207261914
    
    
    com.collabnet.subversion.merge.feature - 2.2.4
    fr.obeo.acceleo.bridge.feature - 2.6.0.200906261742
    org.eclipse.cvs - 1.3.100.v20110520-0800-7B78FHl9VF7BD7KBM4GP9C
    org.eclipse.draw2d - 3.7.0.v20110425-2050-46-7w3122153603161
    org.eclipse.equinox.p2.core.feature - 1.0.1.v20110906-1605-8290FZ9FVKHVRKtmx3fpNuo02129
    org.eclipse.equinox.p2.extras.feature - 1.0.1.v20110906-1605-7A4FD4DiVOMap8cHSc6vPuny4gqO
    org.eclipse.equinox.p2.rcp.feature - 1.0.1.v20110906-1605-782EqBqNKGVkiV-PUsgz-uny4gqO
    org.eclipse.equinox.p2.user.ui - 2.1.2.R37x_v20110815-1155-6-Bk8pYWZz0qUTX5I15GZWwbXkrl
    org.eclipse.help - 1.3.0.v20110530-0844-7i7uFFmFFl8nvqbDpEqTvx
    org.eclipse.jdt - 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1
    org.eclipse.jsf.feature - 3.3.0.me201207261914
    org.eclipse.ocl - 3.1.0.v20110606-1427
    org.eclipse.pde - 3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E--0
    org.eclipse.platform - 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q
    org.eclipse.rcp - 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272
    org.tigris.subversion.clientadapter.feature - 1.6.12
    org.tigris.subversion.clientadapter.javahl.feature - 1.6.17
    org.tigris.subversion.subclipse - 1.6.18
    org.tigris.subversion.subclipse.graph.feature - 1.0.9
    
    
    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Users\haslup\AppData\Local\MyEclipse10\myeclipse.exe
    -name
    Myeclipse
    --launcher.library
    C:\Users\haslup\AppData\Local\MyEclipse10\../MyEclipse for Spring/Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_4.2.0.v201201111650\eclipse_4201.dll
    -startup
    C:\Users\haslup\AppData\Local\MyEclipse10\../MyEclipse for Spring/Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    -install
    C:\Users\haslup\AppData\Local\MyEclipse10
    -configuration
    C:\Users\haslup\AppData\Local\MyEclipse10\configuration
    -vm
    C:\Users\haslup\AppData\Local\MyEclipse for Spring\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
    

    2. If you are not on 10.6, can you please update to 10.6 and check if you still see the issue ?

    Done.

    3. If you are still seeing issues on 10.6, can you please list out the steps in detail you are following for us to help replicate the issue at our end ?

    See attached zip file with a simple project I created.

    It contains one tag file:

    <%@ attribute name="whattosay" required="false" %>
    <%@ attribute name="whattosaynext" required="false" rtexprvalue="true" %>
    <div style='color:red' >
        ${ whattosay } 
        ${ whattosaynext }
    </div>

    … and one JSP:

    <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
    <%@ taglib tagdir="/WEB-INF/tags/testtag" prefix="tt" %>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <base href="<%=basePath%>">
        
        <title>My JSP 'index.jsp' starting page</title>
        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="expires" content="0">    
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="This is my page">
        <!--
        <link rel="stylesheet" type="text/css" href="styles.css">
        -->
      </head>
      
      <body>
        <tt:testtag whattosay="${'Hello, world' }" whattosaynext="${'.' }" />
      </body>
    </html>

    In the JSP the validator marks the value of the whattosay attribute with a warning —

    "whattosay" does not support runtime expressions.

    — but does not mark whattosaynext. This strongly suggests that the validator is treating rtexprvalue as defaulting to false.

    Let us know how it works for you.

    Attachments:
    You must be logged in to view attached files.
    #329941 Reply

    support-swapna
    Moderator

    BigLeeH,

    Thank you for the details and the project.
    I could replicate the issue at my end. I have filed a PR for the dev team to work on it.

    Sorry for inconvenience caused.

    #332662 Reply

    support-tony
    Keymaster

    BigLeeH,

    This issue has now been fixed in release 10.7. You can use the Configuration Center to update to 10.7. Alternatively download the MyEclipse or MyEclipse Blue installer from our download page.

    Note that the full installer for MyEclipse for Spring won’t be available for a few weeks but the fix should be in the update available from the Configuration Center. I mention this because it looks, from your installation details, as though you may have a MyEclipse for Spring installation also.

    Thanks again for reporting the issue.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Validator: JSP Tag Attributes Default to rtexprvalue=false

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