I had worked previously on Struts 1 but never touched Struts 2, especially
since Spring MVC was there to take the leading role. Recently one of my friends
ask me to help with Struts2, which leads me to look on the Struts2 framework from
start. First thing I wanted to find out differences between Struts 1 and Struts
2 framework, because in my experience, if you have worked in the previous version
looking differences between two versions of Struts can quickly help to find,
what changes and What are the new features, concepts and improvement is offered
by Struts 2. Also the difference between
Struts 1 and Struts 2 is a good candidate to include in my list of Struts interview questions
for quick revision.
Thursday, June 12, 2025
Thursday, August 12, 2021
Top 10 Struts Framework Interview Questions and Answers
This time it's Struts interview questions, After writing Spring interview questions a few weeks back I was thinking about what to pick for my interview series and then I thought about any web framework, and on that struts is my favorite. Struts are open-source frameworks used for web applications. These Struts interview questions are based on my experience as well as collected by friends and colleague and they are not only good for interview practice but also shows a new direction of learning for anyone who is not very familiar with struts. The best way to use these interview questions does revise before going for any Struts interview or any Java or J2EE interview.
Labels:
core java interview question
,
J2EE
,
struts
Tuesday, July 27, 2021
Difference between ValidatorForm vs ValidatorActionForm in Struts Framework? Example
Struts provide two classes ValidatorForm and ValidatorActionForm for validating form fields. Instead of doing basic validation by using the validate() method in Action class, these classes allows you to leverage rich feature of validation framework provided by Jakarta Struts framework. You can do declarative validation by defining rules in XML config files like validation-rule.xml or validations.xml as well. Since Struts is one of the popular Web MVC frameworks, you can also use its validation framework on any Java web application implemented using Struts. Now, coming back to the question, what is the actual difference between ValidatorForm and ValidatorActionForm in Struts? They both look quite similar, right?
Subscribe to:
Posts
(
Atom
)