How can I make own ActionServlet? with example
Answer Posted / shaik baji
1)ActionServlet contains a set of methods which are invoked
by the container for processing the client request. If we
want to define our own ActionServlet then you
should "extends" our class
from "org.apache.struts.action.ActionServlet" class and
what ever the functionality we want to override of the
ActionServlet we should override that respective predefined
ActionServlet methods.
2)To invoke our own ActionServlet class instead of the
predefined ActionServlet class we should specify our own
ActionServlet class name in In "web.xml" file like as
follows:
<servlet-class>MyOwnActionServlet</servlet-class>
3)Then the container will invoke our own ActionServlet class
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What are the main classes which are used in struts application?
What are action errors and error and what are the consequences they impose?
What is the use of reset method of ActionForm class?
What is the purpose of struts.xml in struct2?
What is apache struts cve 2017 5638?
What configuration changes are required to use resource files in Struts?
What are the 5 constants of action interface?
Describe validate() and reset() methods.
Explain the components of struts?
Explain the difference between plain-validator and field-validator in struts?
Why are frameworks used?
Why do we need mapdispatchtoprops?
Can you give an overview of how a struts application flows?
What are the struts2 configuration properties that control file uploading process?
What is strut action mapping?