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 is struts in java with example?
Explain design patterns which is used in struts?
What are the benefits of Struts framework?
How many action classes can be used in struts application?
What do you mean by dynaactionform?
What is the purpose of action-mappings tag in struct-config.xml?
What is the purpose of action tag in struts.xml?
Explain how to work with error tags?
Who makes the struts?
What is defeult result type?
Provide some important Struts2 constants that you have used?
What do you mean by actionservlet?
Give the details of xml files used in validator framework?
What is the use of lookupdispatchaction?
What’s the difference between struts and espresso?