struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wellie W. Chao" <wc...@caraveltech.com>
Subject Tiles scope issue with 'tile' scope
Date Wed, 19 Jun 2002 17:51:30 GMT
I recently upgraded to JBoss 3.0 final w/ Tomcat 4.0.3 and am now
running into a problem with Tiles not recognizing the 'tile' scope. Here
is a snippet from a JSP file:

  <tiles:insert attribute="topNav">
    <tiles:put name="titleString" beanName="titleString"
beanScope="tile"/>
    <tiles:put name="menuTile" beanName="menuTile" beanScope="tile"/>
    <tiles:put name="menuDefinition"
               beanName="menuDefinition"
               beanScope="tile"/>
    <tiles:put name="selectedMenuItem"
               beanName="selectedMenuItem"
               beanScope="tile"/>
    <tiles:put name="submenuTile" beanName="submenuTile"
beanScope="tile"/>
    <tiles:put name="submenuDefinition"
               beanName="submenuDefinition"
               beanScope="tile"/>
  </tiles:insert>

Here's the error I get:

13:37:29,049 ERROR [Engine] ApplicationDispatcher[/pressroom]
Servlet.service() for servlet jsp threw exception
javax.servlet.ServletException: Error - scope translation tag :
unrecognized scope 'tile'
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:471)
        at org.apache.jsp.topNav$jsp._jspService(topNav$jsp.java:227)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.java:201)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:683)
        at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:574)
        at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:497)
        at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja
va:820)
        at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:3
91)
        at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa
g.java:757)
        at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:369)
        at
org.apache.jsp.rootLayout$jsp._jspService(rootLayout$jsp.java:392)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.java:201)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:683)
        at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:431)
        at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:355)
        at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
essor.java:181)

Other than upgrading the JBoss 3.0 final, the only other change I made
was to start using xdoclet to generate EJB deployment descriptors and
boilerplate EJB classes. I didn't use it for the web deployment
descriptors or web files though.

Anyone ever experience this problem or have a recommendation on how to
solve the problem? I want to place the attributes in the tile scope so
that the inserted tile has access to the information. If there's another
way to do this (while avoiding namespace clashes with other inserted
tiles), I'd be open to that as well.

Wellie


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message