Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Struts Interview Questions and Answers

  Difficulty Level: AllBeginnerIntermediateExperienced/Expert

Ques 1. What is Struts?

Ques 2. How is the MVC design pattern used in Struts framework?

Ques 3. Who makes the Struts?

Ques 4. Why it called Struts?

Ques 5. Do we need to pay the Struts if being used in commercial purpose?

Ques 6. What are the core classes of Struts?

Ques 7. What is the design role played by Struts?

Ques 8. How Struts control data flow?

Ques 9. What configuration files are used in Struts?

Ques 10. What helpers in the form of JSP pages are provided in Struts framework?

Ques 11. Is Struts efficient?

Ques 12. How you will enable front-end validation based on the xml in validation.xml?

Ques 13. What is ActionServlet?

Ques 14. How you will make available any Message Resources Definitions file to the Struts Framework Environment?

Ques 15. What is Action Class?

Ques 16. Write code of any Action Class?

Ques 17. What is ActionForm?

Ques 18. What is Struts Validator Framework?

Ques 19. Give the Details of XML files used in Validator Framework?

Ques 20. Why do we need Struts?

Ques 21. How does Struts work?

Ques 22. Is Struts compatible with other Java technologies?

Ques 23. Who wrote Struts?

Ques 24. Why is it called Struts?

Ques 25. Do I have to credit Struts on my own website?

Ques 26. Where can I get a copy of Struts?

Ques 27. How do I install Struts?

Ques 28. When do I need "struts.jar" on my classpath?

Ques 29. Does Struts include its own unit tests?

Ques 30. If the framework doesn't do what I want, can I request that a feature be added?

Ques 31. Where can I get help with Struts?

Ques 32. What's the difference between Struts and Turbine? What's the difference between Struts and Espresso?

Ques 33. Why aren't the Struts tags maintained as part of the Jakarta Taglibs project?

Ques 34. Are the Struts tags XHTML compliant ?

Ques 35. Will the Struts tags support other markup languages such as WML  ?

Ques 36. What about JSTL and JavaServer Faces ?

Ques 37. Is there a particularly good IDE to use with Struts

Ques 38. Why was reload removed from Struts (since 1.1)?

Ques 39. What is a modular application? What does module-relative mean?

Ques 40. Why are some of the class and element names counter-intuitive?

Ques 41. Why is ActionForm a base class rather than an interface?

Ques 42. Do ActionForms have to be true JavaBeans?

Ques 43. Can I use multiple HTML form elements with the same name?

Ques 44. Why doesn't the focus feature on the <html:form> tag work in every circumstance?

Ques 45. Why are my checkboxes not being set from ON to OFF?

Ques 46. Can't I just create some of my JavaBeans in the JSP using a scriptlet?

Ques 47. Can I use JavaScript to submit a form?

Ques 48. How do I use JavaScript to struts?

Ques 49. Can I use other beans or hashmaps with ActionForms?

Ques 50. How can I scroll through list of pages like the search results in google?

Ques 51. Why do the Struts tags provide for so little formatting?

Ques 52. Why does the <html:link> tag URL-encode javascript and mailto links?

Ques 53. Why does the option tag render selected=selected instead of just selected?

Ques 54. Do I have to use JSPs with my application?

Ques 55. Do I have to have a separate ActionForm bean for every HTML form?

Ques 56. Can I have an Action without a form?

Ques 57. Can you give me a simple example of using the requiredif Validator rule?

Ques 58. When is the best time to validate input?

Ques 59. How can I avoid validating a form before data is entered?

Ques 60. How can I create a wizard workflow?

Ques 61. What's the best way to deal with migrating a large application from Struts to JSF? Is there any tool support that can help?

Ques 62. How can I 'chain' Actions?

Ques 63. Declarative Exception Handling

Ques 64. Struts GenericDataSource Just a general question - I'm building an application that will run stand-alone, not in an application server. I need to manage some database connections. Is the struts GenericDataSource a good candidate to do this for me? I basicly just need a connection pool from where I can get connections and then return them to optimize performance.
If this struts class is not a good candidate, can someone recommend a similar pool-manager that is lean and mean and easy to use?

Ques 65. Is it possible to create the elements of a page(jsp) dynamically based on the results of a data base query, when using struts framework?

Ques 66. Both JSF and Struts will continue to exist for a while. The Struts community is aware of JSF and is positioning itself to have strong support for JSF. See What about JSTL and JavaServer faces?

Ques 67. Can you compare the advantages and disadvantages of JSF vs. Struts. Both now, and from what you may know of futures, how and if JSF will evolve into a superior technology vs. Struts? Include how WSAD plays into the comparison if it will help differentiate the two.

Ques 68. Multiple Sub-applications

Ques 69. DynaBean and BeanUtils

Ques 70. Explain Validator in Struts.

Ques 71. Default Sub-application

Ques 72. Direct Requests to JSPs

Ques 73. ActionServlet Configurations

Ques 74. Action.execute() and Action.getResources()

Ques 75. Library Dependency

Ques 76. Resources under WEB-INF

Ques 77. What is the Jakarta Struts Framework?

Ques 78. What is an ActionServlet?

Ques 79. How can one make any ?Message Resources? definitions file available to the ?Struts Framework? environment?

Ques 80. What is an Action Class?

Ques 81. What is an ActionForm?

Ques 82. Describe the details of XML files used in the Validator Framework?

Ques 83. How would you display ?validation fail? errors on a JSP page?

Ques 84. How can one enable front-end validation based on the xml in validation.xml?

©2022 WithoutBook