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

What is the use of jsonvalidation?

593


What do you mean by the abstract package in struts2, and what is its utilization?

510


What is the purpose of @urlvalidator annotation?

555


What is the purpose of @doublerangefieldvalidator annotation?

552


How can we display all validation errors to user on jsp page?

645






What is the purpose of @requiredstringvalidator?

560


What is apache struts cve 2017 5638?

542


What are action errors and error and what are the consequences they impose?

562


What are different Struts2 tags? How can we use them?

570


What are the features of struts?

571


Why do we need mapdispatchtoprops?

473


What is the purpose of @before?

548


Which library is provided by struts for form elements like check boxes, text boxes etc?

506


What is the difference between forwardaction and includeaction?

531


How to display validation errors on jsp page?

568