Prepare Interview

Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

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 2. Is Struts efficient?

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

Ques 4. What is ActionServlet?

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

Ques 6. What is Action Class?

Ques 7. Write code of any Action Class?

Ques 8. What is ActionForm?

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 14. Who wrote Struts?

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 23. What's the difference between Struts and Turbine? What's the difference between Struts and Espresso?

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 52. 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 53. How can I 'chain' Actions?

Ques 54. Declarative Exception Handling

Ques 55. 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 56. 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 57. 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 58. 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 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 66. Library Dependency

Ques 67. Resources under WEB-INF

Ques 68. What is the Jakarta Struts Framework?

Ques 69. What is an ActionServlet?

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

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 76. What is Struts?

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?

©2021 WithoutBook