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 features of struts?
What are the loop holes of struts?
Why do the struts tags provide for so little formatting?
What is interceptor? And life cycle methods of interceptor?
What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?
What is the differences between struts1 and struts2?
How does interceptor work in struts2?
What is the use of struts?
Which model components are supported by Struts?
What is use of i18n interceptor?
How exceptions are handled in struts application?
How can forward action be used to restrict a strut application to mvc?
What are the benefits of Struts framework?
How we can install struts?
What is the design role played by struts?