Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Problem with struts tiles

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,
I am getting the following error with struts tiles.
Error - Tag Insert : No value defined for bean 'base' with property 'null' in scope 'null'.
My code is as follows.
myLayout.jsp

TilesPage.jsp



tiles-defs.xml


could anybody help me in this issue please.

Thanks,
sudha.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "beanName" attribute inserts... a bean. It looks like you're trying to insert a tile definition, so you may want the "name" attribute instead.

See the tiles:insert documentation.
 
sudha javvadi
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply David. How should I call the definition in my TilesPage.jsp file so that I can see the layout defined in the myLayout.jsp.

Sudha.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never used Tiles in this way.

What I've always done is create a definition that extends "base" (in your example) and put a value for the "body" attribute. I'm not sure how you're trying to use it, or what the TilesPage.jsp is for.

Sorry I can't be of more help; I'm just not familiar with the way you're trying to use Tiles.
 
Ranch Hand
Posts: 50
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I too never used tiles this way. I can tell you the way i've used it.

Using your myLayout.jsp define a base template in your tiles-defs.xml And then extend it to have a definition for you page. Write the body content you want, in the mypage.jsp - this doesnt'



now you can directly use myPage for rendering purposes.

Hope this helps!!

Srik.
 
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic