This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

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

<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
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We find this kind of rampant individuality very disturbing. But not this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic