wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tiles XML definition help" Watch "tiles XML definition help" New topic
Author

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" />
</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 ]
Jason Berk
Ranch Hand

Joined: May 03, 2006
Posts: 41
anybody?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tiles XML definition help
 
Similar Threads
Struts error
Struts1 tiles
Tiles, putList and tiles-defs.xml
Struts1.3 tiles problem
Tiels tags are not processing