This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Spring Tiles

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,

I have started learning the Spring Framework and have understood the basics such as the IOC. I am now going through the basic MVC support that the framework offers and came across the 'Tiles' concept which I found quite interesting. However, I am struggling to understand how the whole assembly works.

Could anybody on this form please share the source code of a sample web application using Spring MVC and "Tiles"?? A working example would definitely help me understand the framework better.

Many thanks in advance for your support.

Regards,
Steve
 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Stephen,

I assume you know Tiles, if not do the Tiles part of the Struts tutorial at
http://www.courses.coreservlets.com/Course-Materials/struts.html

To use Tiles with Spring:
1. in applicatonContext.xml tell Spring where your Tiles-definitions are, something like


2. also in applicatonContext.xml: tell Spring that it must map a view name (that you use in the controllers) to a tiles-view definiton (in the tiles-defs.xml)


Hope this helps, or else post your code.

Herman
 
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!