#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Merrimack, NH
    Posts
    2
    Rep Power
    0

    Unhappy JspRuntimeLibrary.include() error


    Hi,

    I have a jsp page with a line looks like:

    <jsp:include page="top.jsp" flush="true">
    <jsparam name="section" value="7" />
    </jsp:include>


    The JspC java code looks like:

    JspRuntimeLibrary.include(request, response, "top.jsp" + "?" + "section=" + "7", out, true);


    When I compile the generated java file, I'm getting this error:

    [javac] C:\Projects\AstonC_Mark2View\aw\hedzup\Build\demo\temp\jsp\analysis_jsp.java:49: cannot resolve symbol
    [javac] symbol : method include (javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String
    ,javax.servlet.jsp.JspWriter,boolean)
    [javac] location: class org.apache.jasper.runtime.JspRuntimeLibrary
    [javac] JspRuntimeLibrary.include(request, response, "top.jsp" + "?" + "section=" + "7", out, true);
    [javac] ^


    The same jsp code works fine with the previous version of
    jasper.jar. I'm upgrading to Jetty4.2.9 and hence the upgrades
    to jasper-runtime.jar and jasper-compiler.jar that comes from
    Jetty4.2.9.

    Thanks in advance for any help.

    -Aston
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Merrimack, NH
    Posts
    2
    Rep Power
    0

    Talking Oops!


    Oops! The jasper-compiler.jar, jasper-runtime.jar and javax.servlet.jar were AFTER other jars which obviously screwed up the classpath.

    Putting the above jars before everybody else solve the compilation problem.

    Sorry for the false alarm.

    -Aston

IMN logo majestic logo threadwatch logo seochat tools logo