struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel Wickard <>
Subject [Tiles-Definitions] can't find bean in request.
Date Wed, 26 Mar 2003 16:31:48 GMT
Here's the first few lines of the root cause of the exception I'm getting:

root cause

javax.servlet.ServletException: Error - Tag Insert : No value defined for bean 'admin' with
property 'null' in scope 'request'.
	at org.apache.jasper.runtime.PageContextImpl.handlePageException(
	at org.apache.jsp.employeeLanding_jsp._jspService(
	at org.apache.jasper.runtime.HttpJspBase.service(
	at javax.servlet.http.HttpServlet.service(

Here's my web.xml entries:


Here's my struts-config entries:

  <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
    <set-property property="definitions-debug" value="2" />

Here's my tiles-defs.xml entries:

    <definition name="admin" path="/admin/templates/backendMain.jsp">    
        <put name="page-title" value="QuatraData :: Default" />
        <put name="logo-content" value="/logoDefault.jsp" />
        <put name="menu-layout" value="/menuBar.jsp" />  

Here's the page I'm trying to use the template in:

<%@page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<tiles:insert beanName="admin" beanScope="request"/>

( what I'm trying to do is just have a page that uses all the defaults specified in tiles-defs,
that's why I have no put tags )

Here's the template itself:

<%@page contentType="text/html"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
	<title><tiles:getAsString name="page-title" /></title>
        <script language="Javascript">
          function launchTimeClock(){
       "./timeclock/timeClock.jsp", "puchClock", "resizeable=no, height=170,


<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#CCCCCC" onLoad="launchTimeClock();">
	<table cellspacing="0" cellpadding="0" border="0">
			<td width="300">
				<!-- Logo Content -->
                                <tiles:insert name="logo-content" />
			<td valign="top">
				<tiles:insert name="menu-layout" />

Here's the pages that should be inserted:


I am a logo


My Menu Bar

If I don't use definition, if I just use a template and then manually use tiles:put, it works

Any help would be great,  I can supply any other requested information.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message