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
Name some of the features of struts2?
What is role of action class?
What is the difference between session scope and request scope when saving formbean ?
What are the advantages of spring mvc over struts mvc?
What is the purpose of @conversion annotation annotation?
State the procedure for using forward attribute of link tag’s.
How the flow of various requests happens in struts application?
What is declarative exception handling in struts?
What is form bean in struts?
What kind of mvc is struts 2?
What are the major differences between html tags and strut specific html tags?
What are the some useful annotations introduced in struts2?
What are the 5 constants of action interface?
What are the cons of struts 2?
How does struts2 token work?