facebook

JspCC problems

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #196635 Reply

    chatterj
    Member

    Hi!

    I ran into some problems with JspCC reporting what looks like invalid problems, filing them all under this thread as reports so someone can investigate.

    Shash

    #196636 Reply

    chatterj
    Member

    Have JSPs that begin like:

    <%@ page contentType=”text/html; charset=iso-8859-1″ language=”java” import=”java.sql.*” errorPage=”” %>
    <%@ taglib uri=”/WEB-INF/tld/tiles.tld” prefix=”tiles” %>
    <html>
    <head>
    <title><tiles:getAsString name=”title” ignore=”true”/></title>
    <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
    </head>

    JspCC error (on line 2 starting <%@ taglib….):

    Severity Description Resource In Folder Location Creation Time
    expected /WEB-INF/tld/tiles.tld”= config-tile-definition.jsp BADFWfolder/BADFW/expresso/jsp/configuration line 2 July 3, 2003 6:01:34 PM

    #196637 Reply

    chatterj
    Member

    Here’s the text of another JSP:

    <%@ page contentType=”text/html; charset=iso-8859-1″ language=”java” import=”java.sql.*” errorPage=”” %>
    <%@ taglib uri=”/WEB-INF/tld/tiles.tld” prefix=”tiles” %>
    <%@ taglib uri=”/WEB-INF/tld/struts.tld” prefix=”struts” %>
    <%@ taglib uri=”/WEB-INF/tld/struts-bean.tld” prefix=”struts-bean” %>
    <%@ taglib uri=”/WEB-INF/tld/expresso-bean.tld” prefix=”bean” %>
    <%@ taglib uri=”/WEB-INf/tld/expresso.tld” prefix=”expresso” %>

    <struts-bean:define id=”theTitle” property=”title” name=”controllerResponse” type=”java.lang.String”/>

    <tiles:insert page=”config-tile-definition.jsp” flush=”true”>
    <tiles:put name=”title” value=”<%=theTitle%>”/>
    <tiles:put name=”upperLeft” value=”title-tile.jsp”/>
    <tiles:put name=”listing” value=”<%=request.getContextPath()%>/Configuration.do?state=showContainerTree”/>
    <tiles:put name=”content” value=””/>
    </tiles:insert>

    Here’s the JspCC error:

    Severity Description Resource In Folder Location Creation Time
    expected /WEB-INF/tld/tiles.tld”= index.jsp BADFWfolder/BADFW/expresso/jsp/configuration line 2 July 3, 2003 5:58:48 PM

    #196638 Reply

    chatterj
    Member

    Have code like:
    <%@ include file=”jsp/properSetup.inc” %>
    <expresso:stylesheet/>

    Here’s the JspCC error:
    Severity Description Resource In Folder Location Creation Time
    unknown user tag <expresso:… add <%@ taglib prefix=”expresso” …> intro.jsp BADFWfolder/BADFW/expresso line 17 July 3, 2003 5:34:19 PM

    The taglib is defined correctly in the properSetup.inc file. This works fine under Tomcat, Resin.

    #196640 Reply

    Scott Anderson
    Participant

    Just so you don’t feel ignored, we’ll be looking into these internally and someone will post back when we have some information.

    One thought, if you change the extension from .inc to .jspf, does that work?

    –Scott
    MyEclipse Support

    #196644 Reply

    Scott Anderson
    Participant

    Via a private message, MyEclipse user gdhokamp had this to say about the problems you’re experiencing:

    I had a similiar problem. Removing the errorPage attribute in the page tag will solve the problem. I don\’t know if this is an error of the JSPCC.

    Regards
    Gerald

    By the way, Gerald tried to post the reply himself but had problems since he attempted to quote some of the JSP content. The portal software we use, postNuke, disallows HTML posts for security reasons. If you have trouble posting, this is likely the problem.

    –Scott
    MyEclipse Support

    #196656 Reply

    Scott Anderson
    Participant

    After internal review, Gerald is correct. These compilation problems are being caused by specifying ‘errorPage=””‘. When errorPage is specified, a valid URL must be provided. However, the compiler error could be a good bit more clear so we’ll be improving the error message in the next release (GA) of the workbench.

    However, you’ll still have to fix the errorPage declaration.

    Thanks for reporting!

    –Scott
    MyEclipse Support

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: JspCC problems

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