Struts Interview Questions and Answers
Difficulty Level: AllBeginnerIntermediateExperienced/Expert
Ques 1. What helpers in the form of JSP pages are provided in Struts framework?
Ques 3. How you will enable front-end validation based on the xml in validation.xml?
Ques 4. What is ActionServlet?
Ques 7. Write code of any Action Class?
Ques 9. What is Struts Validator Framework?
Ques 10. Give the Details of XML files used in Validator Framework?
Ques 11. Why do we need Struts?
Ques 12. How does Struts work?
Ques 13. Is Struts compatible with other Java technologies?
Ques 15. Why is it called Struts?
Ques 16. Do I have to credit Struts on my own website?
Ques 17. Where can I get a copy of Struts?
Ques 18. How do I install Struts?
Ques 19. When do I need "struts.jar" on my classpath?
Ques 20. Does Struts include its own unit tests?
Ques 21. If the framework doesn't do what I want, can I request that a feature be added?
Ques 22. Where can I get help with Struts?
Ques 24. Why aren't the Struts tags maintained as part of the Jakarta Taglibs project?
Ques 25. Are the Struts tags XHTML compliant ?
Ques 26. Will the Struts tags support other markup languages such as WML ?
Ques 27. What about JSTL and JavaServer Faces ?
Ques 28. Is there a particularly good IDE to use with Struts
Ques 29. Why was reload removed from Struts (since 1.1)?
Ques 30. What is a modular application? What does module-relative mean?
Ques 31. Why are some of the class and element names counter-intuitive?
Ques 32. Why is ActionForm a base class rather than an interface?
Ques 33. Do ActionForms have to be true JavaBeans?
Ques 34. Can I use multiple HTML form elements with the same name?
Ques 35. Why doesn't the focus feature on the <html:form> tag work in every circumstance?
Ques 36. Why are my checkboxes not being set from ON to OFF?
Ques 37. Can't I just create some of my JavaBeans in the JSP using a scriptlet?
Ques 38. Can I use JavaScript to submit a form?
Ques 39. How do I use JavaScript to struts?
Ques 40. Can I use other beans or hashmaps with ActionForms?
Ques 41. How can I scroll through list of pages like the search results in google?
Ques 42. Why do the Struts tags provide for so little formatting?
Ques 43. Why does the <html:link> tag URL-encode javascript and mailto links?
Ques 44. Why does the option tag render selected=selected instead of just selected?
Ques 45. Do I have to use JSPs with my application?
Ques 46. Do I have to have a separate ActionForm bean for every HTML form?
Ques 47. Can I have an Action without a form?
Ques 48. Can you give me a simple example of using the requiredif Validator rule?
Ques 49. When is the best time to validate input?
Ques 50. How can I avoid validating a form before data is entered?
Ques 51. How can I create a wizard workflow?
Ques 53. How can I 'chain' Actions?
Ques 54. Declarative Exception Handling
Ques 59. Multiple Sub-applications
Ques 60. DynaBean and BeanUtils
Ques 61. Explain Validator in Struts.
Ques 62. Default Sub-application
Ques 63. Direct Requests to JSPs
Ques 64. ActionServlet Configurations
Ques 65. Action.execute() and Action.getResources()
Ques 67. Resources under WEB-INF
Ques 68. What is the Jakarta Struts Framework?
Ques 69. What is an ActionServlet?
Ques 71. What is an Action Class?
Ques 72. What is an ActionForm?
Ques 73. Describe the details of XML files used in the Validator Framework?
Ques 74. How would you display ?validation fail? errors on a JSP page?
Ques 75. How can one enable front-end validation based on the xml in validation.xml?
Ques 77. How is the MVC design pattern used in Struts framework?
Ques 78. Who makes the Struts?
Ques 79. Why it called Struts?
Ques 80. Do we need to pay the Struts if being used in commercial purpose?
Ques 81. What are the core classes of Struts?
Ques 82. What is the design role played by Struts?
Ques 83. How Struts control data flow?
Ques 84. What configuration files are used in Struts?