Totel:135 Click:
1 2 3 4 5 6 7
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Struts Interview Questions And Answers
Page 7
Questions 31
What are the two i18n components of a Struts Application?
Answer
The tow main components packaged with the Struts framework for internationalization of your Struts application are:
* Message class that references a resource bundle containing Locale-dependent string and managed by the application Contorller.
* JSP custom tag, <bean-message/>, which is used in the view layer to present the actual string managed by the Contorller.
Questions 32 Give name of the error management classes provided by the Struts framework?
Answer
The Struts framework provides two error management classes:
* ActionError
* ActionErrors
Questions 33 What is the difference between the ActionError and ActionErrors class provided by the Struts Framework?
Answer
The org.apache.struts.action.ActionError class extends the org.apache.struts.action.ActionMessage class and reresents the single error message. The key attribute of the ActionError class is used to lookup a resource from the application resource bundle, "Internationalizing your struts application".
The org.apache.struts.action.ActionErrors class extends the org.apache.struts.action.ActionMessage class and represents a collection of ActionError classes. The ActionErrors class is composed of two contructors and a single method that allows you to add an ActionError object to the current collection of ActionErrors.
Questions 34 What is for <html:errors/> tag provided by Struts specific JSP tag library.
Answer
The <html:errors/> tag is used to display the ActionError objects stored in ActionErrors collection.
Questions 35 What is the tiles framework in struts?
Answer
The tiles framework turns the concept of jsp:includes inside out. Developers can build pages by assembling reusable Tiles. You can think of Tiles as visual components.
A Tile and a Tile layout can be reused on more than one page. Tiles are other JSP pages or any web resource. Tile layouts dictate how the Tiles will be laid out on the page.
Goto Page:
1 2 3 4 5 6 7
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Struts Objective Questions And Answers
Struts Objective Questions And Answers
Struts Interview Questions And Answers
Struts Interview Questions And Answers
R4R,Struts Objective, Struts Subjective, Struts Interview Questions And Answers,Struts,Struts Interview,Struts Questions ,Struts Answers