You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jonathan <ja...@i-2000.com> on 2001/06/02 00:16:15 UTC

nested TokenStreamException, WL6, & Templates

the Exception

javax.servlet.jsp.JspException: JSP compilation of /inc/template2.jsp failed: weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamExc
eption: Could not include inc/imports.jsp
        at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
        at jsp_servlet._logon._jspService(_logon.java:160)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:246)
        at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)
        at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1622)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)


the page "logon.jsp"

<%@ include file="inc/imports.jsp" %>
<template:insert template='/inc/template2.jsp'>
 <template:put name='title' content='Logon to Success Meetings' direct='true'/>
 <template:put name='logon_form' content='/inc/logon_form.jsp'/>
</template:insert>



the template "my_template.jsp"

<%@ include file="inc/imports.jsp" %>
<html:html locale="true">
    <BODY>
        <template:get name='logon_form'/>
        .....................
    </BODY>
</html:html>



Common include "imports.jsp"

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>