what are tiles in struts?

Answer Posted / shinde

Tiles is a plugin in struts.
Where you can give alias for different jsp's.
It works similar to include tag in jsp.
In tiles you can mention what should be a header a footer and content etc.. for a particular page.
The alias can be called from struts config file.
Eg:
If you have an Index page and you have want to include header and a footer in the jsp,
you can do it by using the include tag
orelse you can create an alias for index.jsp in tiles
(eg: index.page) and define the header and footer for that particular page in tiles.
In struts config, instead of forwarding to index.jsp, forward it to index.page.
The difference would be, forwarding to index.jsp, wont contain header and footer, where as forward to index.page
will have header and footer.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the tag?

639


What is interceptor in Struts2?

575


What is the purpose of action tag in struts.xml?

571


Why it called struts?

567


How to explain Software Bank Loan descriptions

1909






Is struts efficient?

502


What is action chaining ?

652


What is difference between lookupdispatchaction and dispatchaction?

641


Is there a particularly good ide to use with struts?

512


Whats the difference between the default namespace and the root namespace?

528


For a single Struts application, can we have multiple struts-config.xml files?

594


What are the steps involved in creating a strut application?

524


What does modeldriven interceptor?

599


What is the purpose of @results annotation?

724


What is defeult result type?

636