struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juri Smarschevski <...@intratools.de>
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:
[tiles-defs.xml]
<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>

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

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


[layout_search_alb_body.jsp]
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<tiles:get name="search_form"/>

[c_search_form.jsp]
<%@ 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 ?
The http://jakarta.apache.org/struts/userGuide/struts-tiles.htm
did not help me at this point. Any RTFM-links are welcome ;-)

thx in advance and regards,
juri







--
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