• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with Tiles-Definition

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like the define tag is failing. Perhaps take out the / in your URL's.
 
tumbleweed and gunslinger
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I am a man of mystery. Mostly because of this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic