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

Problem with Tiles-Definition

Abhay Kumar

Joined: Jun 03, 2003
Posts: 15
I am trying to call a definition and override it.
It gives me this error.
"org.apache.jasper.JasperException: Error - Tag Insert : No value defined for bean 'myDef' with property 'null' in scope 'null'.
javax.servlet.ServletException: Error - Tag Insert : No value defined for bean 'myDef' with property 'null' in scope 'null'. "

Below is the code.
"file Name:indexDef.jsp"
<tiles efinition id="myDef" page="/tiles.jsp" >
<tiles ut name="one" content="/one.html" />
<tiles ut name="two" content="/two.html" />
</tiles efinition>
Here i am overriding the "one" with "OneMore"
and calling the JSP
"File Name: def.jsp"
<tiles:insert beanName="myDef" flush="true" >
<tiles ut name="one" value="/oneMore.html" />
Can any one help me out.
Roger Goerke

Joined: Sep 16, 2002
Posts: 9
It looks like the define tag is failing. Perhaps take out the / in your URL's.

Yes. Shrubberies are my trade. I am a shrubber. <br />My name is 'Roger the Shrubber'.<br />I arrange, design, and sell shrubberies.
David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
Here is an example of what's in my tiles-defs.xml file:

Then, I have a Struts Action forard that looks like:

If you need more examples, let me know.
I agree. Here's the link:
subject: Problem with Tiles-Definition
It's not a secret anymore!