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 the purpose of @emailvalidator?
What are the core classes of struts framework? Explain
What does modeldriven interceptor?
What is controller in struts ?
What is actionform in struts?
How do struts work?
What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?
What is the purpose of plug-in tag in struct-config.xml?
What is difference between interceptors and filters?
State the procedure for using forward attribute of link tag’s.
What are apache struts?
How do u provide security to ur project?(Banking domain project)
How we can controlled duplicate form submission in struts?
What is the front controller in struts2?
What are Struts2 core components?