posted 18 years ago
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" />
</plug-in>
<action path="/CollectIdentityInfo"
parameter="/WEB-INF/struts/modules/MyApp/jsp/foo.jsp"
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" />
</tiles:insert>
fooContent.jsp reads:
<html:form action="/Process" method="post">
blah blah blah
</html:form>
account-defs.xml reads:
<tiles-definitions>
<!-- Standard Layout -->
<definition name="account.default"
path="/WEB-INF/struts/common/layouts/DefaultLayout.jsp">
<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" />
</definition>
</tiles-definitions>
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" %>
<html>
<head>
<title>
FOOBAR
</title>
</head>
<body>
<tiles:insert attribute="header"/>
<tiles:insert attribute="content"/>
<tiles:insert attribute="footer"/>
</body>
</html>
--------------------
thanks for any help
Jason
[ May 19, 2006: Message edited by: Jason Berk ]