I seem to be experiencing some issues with this migration I am attempting. I
have read through some of the threads that pertain to this issue, however I
am still encountering problems. 

The following is used in this webapp :

jstl 1.1.2
jspx

I am receiving the following exception :

javax.servlet.ServletException: javax.servlet.jsp.JspTagException

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)

com.a.userMovementsByDate_jspx._jspService(userMovementsByDate_jspx.java:289)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

javax.servlet.jsp.JspTagException

org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:174)

org.apache.jsp.tag.web.dateChooser_tagx._jspx_meth_c_005fset_005f0(dateChooser_tagx.java:231)
        org.apache.jsp.tag.web.dateChooser_tagx.doTag(dateChooser_tagx.java:157)

com.a.userMovementsByDate_jspx._jspService(userMovementsByDate_jspx.java:166)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

Now it seems in the generated code from JspC that lines of code go amiss.
For instance if I have :

<?xml version="1.0"?>
<jsp:root version="1.2"
          xmlns:jsp="http://java.sun.com/JSP/Page";
          xmlns:c="urn:jsptld:/WEB-INF/tld/jstl.tld"
          xmlns:rx="urn:jsptld:/WEB-INF/tld/regexp.tld"
          xmlns:dt="urn:jsptld:/WEB-INF/tld/datetime.tld">
    <jsp:directive.tag display-name="Date chooser tag" isELIgnored="false"
body-content="empty" description="Selects two dates"/>
    <jsp:directive.attribute name="varStart" required="true"
rtexprvalue="false" type="java.lang.String" description="Name of variable
for start date"/>
    <jsp:directive.attribute name="varEnd" required="true"
rtexprvalue="false" type="java.lang.String" description="Name of variable
for end date"/>
    <jsp:directive.attribute name="from" description="Start date, if
available"/>
    <jsp:directive.attribute name="to" description="End date, if
available"/>
    <jsp:directive.attribute name="ignoreSeconds" description="Set to true
if  seconds are to be ignored."/>
    <jsp:directive.variable name-from-attribute="varStart" alias="start"
scope="AT_END" description="Start date available after end of tag"/>
    <jsp:directive.variable name-from-attribute="varEnd" alias="end"
scope="AT_END" description="End date available after end of tag"/>
    
    <!-- Get the current date/time  -->
    <c:set var="ctime"><dt:currentTime/></c:set>

    //Rest of code

Now in the generated code the following appears :

_jspx_th_c_005fset_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fset_005f0.setParent(new
javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag)
this ));    // /WEB-INF/tld/a-v7.3.tld"ctime");
    int _jspx_eval_c_005fset_005f0 = _jspx_th_c_005fset_005f0.doStartTag();

Now if I add an extra c:set to jspx : 
    <!-- Get the current date/time  -->
    <c:set var="ctime"><dt:currentTime/></c:set>
    <c:set var="ctime"><dt:currentTime/></c:set>

The generated code will have 2 entries. The first stays the same but the
second has :

_jspx_th_c_005fset_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fset_005f1.setParent(new
javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag)
this ));    // /WEB-INF/tags/dateChooser.tagx(18,24) name = var type =
java.lang.String reqTime = false required = false fragment = false
deferredValue = false expectedTypeName = null deferredMethod = false
methodSignature = null
    _jspx_th_c_005fset_005f1.setVar("ctime");
    int _jspx_eval_c_005fset_005f1 = _jspx_th_c_005fset_005f1.doStartTag();

That serVar(in this case, other times setId is not generated) is missing
from the first, and this is causing all my problems.

I have tried the following :

1. Set servlet spec to 2.4 in webapp tag in web xml.
2. Using the tomcat 6 libs and not 5.0.28 when building.

Any help greatly appreciated.
-- 
View this message in context: 
http://www.nabble.com/Tomcat-5.0.28-to-Tomcat-6.0.14-tp16173986p16173986.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to