This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with Tiles-Definition" Watch "Problem with Tiles-Definition" New topic
Author

Problem with Tiles-Definition

Abhay Kumar
Greenhorn

Joined: Jun 03, 2003
Posts: 15
Hai,
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'.
and
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" />
</tiles:insert>
Can any one help me out.
Thanks,
Abhay
Roger Goerke
Greenhorn

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: http://aspose.com/file-tools
 
subject: Problem with Tiles-Definition