• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

tiles XML definition help

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
anybody?
 
We're all out of roofs. But we still have tiny ads:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic