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 Asbell <ja...@i-2000.com> on 2001/06/02 02:30:35 UTC
*TED* Re: I am finding that templates are SLOW
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(WebAppServletCo
ntext.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" %>
----- Original Message -----
From: "Ted Husted" <hu...@apache.org>
To: <st...@jakarta.apache.org>
Sent: Friday, June 01, 2001 5:10 PM
Subject: Re: I am finding that templates are SLOW
> Template pages can take longer to compile, since there is more to do,
> but should run fine after that.
>
> I've used complex templates extensively with other containers and have
> no runtime performance problems.
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 737-3463.
> -- http://www.husted.com/about/struts/
>
> > Jonathan wrote:
> >
> > I am using weblogic 6 on w2k. I clicked on a templated page and
> > MAN.....I wait atleast 1 minute for the results. Is this known?
>
Re: *TED* Re: I am finding that templates are SLOW
Posted by Jonathan <ja...@i-2000.com>.
Yes Hal, it is WL6. It was a problem with the paths.
We should post this somewhere so others can know.
----- Original Message -----
From: "Deadman, Hal" <ha...@tallan.com>
To: <st...@jakarta.apache.org>
Sent: Monday, June 04, 2001 9:46 AM
Subject: RE: *TED* Re: I am finding that templates are SLOW
> Weblogic sometimes has trouble parsing relative paths. Are you using
> Weblogic 6.0? It might be fixed in SP2. I do this <%@ include
> file="/include/toppage.inc" %> and it works. Try /inc/imports.jsp.
>
> > -----Original Message-----
> > From: Jonathan Asbell [mailto:jasbell@i-2000.com]
> > Sent: Friday, June 01, 2001 8:31 PM
> > To: struts-user@jakarta.apache.org
> > Subject: *TED* Re: I am finding that templates are SLOW
> >
> >
> > 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(Servle
> > tStubImpl.java
> > :213)
> > at
> > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> > tStubImpl.java
> > :246)
> > at
> > weblogic.servlet.internal.WebAppServletContext.invokeServlet(W
> > ebAppServletCo
> > ntext.java:1265)
> > at
> > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRe
> > questImpl.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" %>
> > ----- Original Message -----
> > From: "Ted Husted" <hu...@apache.org>
> > To: <st...@jakarta.apache.org>
> > Sent: Friday, June 01, 2001 5:10 PM
> > Subject: Re: I am finding that templates are SLOW
> >
> >
> > > Template pages can take longer to compile, since there is
> > more to do,
> > > but should run fine after that.
> > >
> > > I've used complex templates extensively with other
> > containers and have
> > > no runtime performance problems.
> > >
> > > -- Ted Husted, Husted dot Com, Fairport NY USA.
> > > -- Custom Software ~ Technical Services.
> > > -- Tel 716 737-3463.
> > > -- http://www.husted.com/about/struts/
> > >
> > > > Jonathan wrote:
> > > >
> > > > I am using weblogic 6 on w2k. I clicked on a templated page and
> > > > MAN.....I wait atleast 1 minute for the results. Is this known?
> > >
> >
>
RE: *TED* Re: I am finding that templates are SLOW
Posted by "Deadman, Hal" <ha...@tallan.com>.
Weblogic sometimes has trouble parsing relative paths. Are you using
Weblogic 6.0? It might be fixed in SP2. I do this <%@ include
file="/include/toppage.inc" %> and it works. Try /inc/imports.jsp.
> -----Original Message-----
> From: Jonathan Asbell [mailto:jasbell@i-2000.com]
> Sent: Friday, June 01, 2001 8:31 PM
> To: struts-user@jakarta.apache.org
> Subject: *TED* Re: I am finding that templates are SLOW
>
>
> 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(Servle
> tStubImpl.java
> :213)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java
> :246)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(W
> ebAppServletCo
> ntext.java:1265)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRe
> questImpl.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" %>
> ----- Original Message -----
> From: "Ted Husted" <hu...@apache.org>
> To: <st...@jakarta.apache.org>
> Sent: Friday, June 01, 2001 5:10 PM
> Subject: Re: I am finding that templates are SLOW
>
>
> > Template pages can take longer to compile, since there is
> more to do,
> > but should run fine after that.
> >
> > I've used complex templates extensively with other
> containers and have
> > no runtime performance problems.
> >
> > -- Ted Husted, Husted dot Com, Fairport NY USA.
> > -- Custom Software ~ Technical Services.
> > -- Tel 716 737-3463.
> > -- http://www.husted.com/about/struts/
> >
> > > Jonathan wrote:
> > >
> > > I am using weblogic 6 on w2k. I clicked on a templated page and
> > > MAN.....I wait atleast 1 minute for the results. Is this known?
> >
>