File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes tiles XML definition help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tiles XML definition help" Watch "tiles XML definition help" New topic

tiles XML definition help

Jason Berk
Ranch Hand

Joined: May 03, 2006
Posts: 41
I'm stuck on this error:

javax.servlet.jsp.JspException: Error - Tag Insert : No value defined for bean 'account.default' with property 'null' in scope 'null'.

my web.xml has the taglibs defined
my default struts-config is absolutely blank

module myApp-struts-config.xml has:
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config"
value="/WEB-INF/struts/common/definitions/account-defs.xml" />
<set-property property="definitions-debug" value="2" />
<set-property property="definitions-parser-details" value="2" />
<set-property property="definitions-parser-validate" value="true"/>
<set-property property="moduleAware" value="true" />

<action path="/CollectIdentityInfo"
type="org.apache.struts.actions.ForwardAction" />

foo.jsp reads:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<tiles:insert beanName="account.default" beanScope="request">
<tiles :p ut name="content"
value="/WEB-INF/struts/modules/MyApp/fooContent.jsp" />

fooContent.jsp reads:
<html:form action="/Process" method="post">
blah blah blah

account-defs.xml reads:
<!-- Standard Layout -->
<definition name="account.default"
<put name="header" value="/WEB-INF/struts/common/tiles/header.jsp"/>
<put name="content" value="" />
<put name="footer" value="/WEB-INF/struts/common/tiles/footer.jsp" />

DefaultLayout.jsp reads:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<tiles:insert attribute="header"/>
<tiles:insert attribute="content"/>
<tiles:insert attribute="footer"/>

thanks for any help

[ May 19, 2006: Message edited by: Jason Berk ]
Jason Berk
Ranch Hand

Joined: May 03, 2006
Posts: 41
I agree. Here's the link:
subject: tiles XML definition help
It's not a secret anymore!