struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juri Smarschevski <>
Subject tiles scope
Date Fri, 10 Jan 2003 10:25:51 GMT
hi all,

have a problem with tile's scopes. (struts-1.1-b2)

my simple tiles structure looks as follows:
<definition name="mainLayout" path="/WEB-INF/tiles/layout_main.jsp">
  <put name="title"     value="Sample Page Title" type="string" />
  <put name="header"    value="/WEB-INF/tiles/header.jsp" />
  <put name="js_header" value="" />
  <put name="menu"      value="/WEB-INF/tiles/menu.jsp" />
  <put name="body"      value="/WEB-INF/tiles/body.jsp" />
  <put name="footer"    value="/WEB-INF/tiles/footer.jsp" />

<definition name="searchAlb" extends="mainLayout">
  <put name="body"   value="searchAlb.body" />

<definition name="searchAlb.body"
  <put name="search_form" value="/WEB-INF/contents/c_search_form.jsp" />
  <!-- etc. -->

<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<tiles:get name="search_form"/>

<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<center>hi from search form</center>

the called jsp-page is [alb_search.jsp]
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<tiles:insert definition="searchAlb" flush="true"/>

and the c_search_form.jsp throws the exception
[ServletException in:/WEB-INF/contents/c_search_form.jsp] Cannot find
bean org.apache.struts.taglib.html.BEAN in any scope'
cause by the line
<%@ taglib uri="/tags/struts-html" prefix="html" %>

Any ideas why ? Have I (can I) to define a scope in the tiles
definitions ?
did not help me at this point. Any RTFM-links are welcome ;-)

thx in advance and regards,

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message