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
What is the difference between forwardaction and includeaction?
Which class of struts is responsible to converts data types from string and vice versa?
What are the features of struts 2?
How to display validation errors on jsp page?
Explain about the
What should be the name of xml file used for validation in struts?
Describe the mvc on struts?
How many action classes can be used in struts application?
What are the components of struts?
What is struts-default package and what are it’s benefits?
What is a custom tag?
Give an example where struts tiles may be used?
In which method of action class the business logic is executed?
State the procedure for using forward attribute of link tag’s.
State an example of struts configuration file as an action parameter for action servlet.