Thanks for the report, I will correct this problem asap.
Cedric "Wellie W. Chao" wrote: > Hi Cedric, > > Replacing the beanScope="tile" by beanScope="template" seems to work. It > seems the documentation is inconsistent -- there are references to using > beanScope="tile". Thanks for the tip. > > Wellie > > On Thu, 20 Jun 2002, Cedric Dumoulin wrote: > > > Date: Thu, 20 Jun 2002 16:51:50 +0200 > > From: Cedric Dumoulin <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > > To: Struts Users Mailing List <[EMAIL PROTECTED]> > > Subject: Re: Tiles scope issue with 'tile' scope > > > > > > Hello, > > > > The error occur during an insert, so it can be sent by the inserted jsp page. > > The "tile" scope can only be used in tiles tags. Check if you don't use it with > > other kind of tags. > > Also, you can try to replace "tile" by a synonym "template" or "component". > > > > Hope this help, > > > > Cedric > > > > "Wellie W. Chao" wrote: > > > > > 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:[EMAIL PROTECTED]> > > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > > > -- > > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>