Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Tiles-Definition

 
Abhay Kumar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like the define tag is failing. Perhaps take out the / in your URL's.
 
David Yutzy
tumbleweed and gunslinger
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic