Instead of manually using basic validation using validate() method in action class, harnesses the rich feature of validation framework( or descriptive validation) provided by the struts using XML Files(& validations.xml)Instead of manually using basic validation using validate() method in action class, harnesses the rich feature of validation framework( or descriptive validation) provided by the struts using XML Files(& validations.xml)Some times it happens that a single form is shared by many actions or JSP pages so to configure a single validation for form would be overkill, we are wasting time by validating all fields which are not related to our page.
Topic 1: Struts interview questions on main feature 1.
The problem is that when I enter page for the first time I receive Following exception:2/03 :963 GMT] 51272c9d Web Group E SRVE0026E: [Servlet Error]-[action]: Http Servlet.service(Http Servlet.java:740)at javax. Http Servlet.service(Http Servlet.java:853)Now, since it is a Null Pointer Exception and it is raised by thevalidate, my assumption is that the Dyna Validator Form is trying tovalidate all the parameters in order to populate the Form, and sincetheonly parameter in the request is method To Call, it raises an exception.
Null Pointer Exceptionat org.apache.commons.validator. Validator.validate(Unknown Source)atorg.apache.struts.validator. Dyna Validator Form.validate(Dyna Validator Form.java:303)atorg.apache.struts.action. Request Processor.process Validate(Request Processor.java:893)atorg.apache.struts.action. Request Processor.process(Request Processor.java:247)atorg.apache.struts.action. Action Servlet.process(Action Servlet.java:1292)atorg.apache.struts.action. But, since I am no expert in Dyna Action Form, can anyone help me out in Solving my problem?
Why use Struts framework if you have better Spring MVC framework ?
How to configure Message Resources definitions file available to Struts Framework environment ?
It is not possible to do the Validation in the form itself.
Can we have more than one file for single Struts application ?
What is best way to deal with migrating large application from Struts to JSF ?
What main classes which used in struts application ?
How is MVC design pattern used in Struts framework ? What are Pull-MVC and push-MVC based architecture ? Topic 5: Struts interview questions on application 1.