<html> <head></head> <body> asdasd <tiles:insert page="/msgtilelayout.jsp" flush="true"> <tiles ut name="title" type="string" value="QEqeqeqwe"/> <tiles ut name="header" value="/header.jsp"/> <tiles ut name="left" value="/left.jsp"/> <tiles ut name="bottom" value="/bottom.jsp"/> <tiles ut name="bottom" type="string"> Siome text goes here </tiles ut> </tiles:insert> </body> </head>
5. This is my entry in struts.config file <plug-in className="org.apache.struts.tiles.TilesPlugin" >
<!-- Path to XML definition file --> <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" /> <!-- Set Module-awareness to true --> <set-property property="moduleAware" value="true" /> <set-property property="definitions-parser-validate" value="true"/> </plug-in>
But I am getting the following error
-------------------------------------
[#|2005-03-02T14:32:51.382+0530|SEVERE|sun-appserver-pe8.0.0_01|org.apache.stru ts.taglib.tiles.InsertTag|_ThreadID=11;|ServletException in '/msgtilelayout.jsp': Invalid bean scope null javax.servlet.ServletException: Invalid bean scope null at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl .java:827) at org.apache.jasper.runtime.PageContextImpl.access$1100(PageContextImpl.java:69) at org.apache.jasper.runtime.PageContextImpl$12.run(PageContextImpl.java:747) at java.security.AccessController.doPrivileged(Native Method) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.j ava:745) at org.apache.jsp.msgtilelayout_jsp._jspService(msgtilelayout_jsp.java:123) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102) --------------------------------------------------------
[#|2005-03-02T14:32:51.382+0530|SEVERE|sun-appserver-pe8.0.0_01|javax.enterpris e.system.container.web|_ThreadID=11;|StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: ServletException in '/msgtilelayout.jsp': Invalid bean scope null at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java: 921) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460) at org.apache.jsp.content_jsp._jspx_meth_tiles_insert_0(content_jsp.java:141) at org.apache.jsp.content_jsp._jspService(content_jsp.java:80) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102) at javax.servlet.http.HttpServlet.service(HttpServlet.java:861) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
Welcome to JavaRanch. We don't have many rules here, but we do have a naming policy which we try to strictly enforce. Please re-read this document and edit your display name in order to comply. Thanks in advance, and we look forward to seeing you around the Ranch.
Hi, I think in your <tiles ut name =...>, you need to specify an actual beanScope as request, page,etc. Try it and see if that works.
Suneesh Raman
Ranch Hand
Joined: Jun 13, 2002
Posts: 42
posted
0
I have tried with bean scope also but still it is not working When I am accessing the layout jsp I am getting the following error will it be the problem ?