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
When should we use SwtichAction?
How do struts work?
What is apache struts framework?
State an example of struts configuration file as an action parameter for action servlet.
Which library is provided by struts for form elements like check boxes, text boxes etc?
What is the use of jsonvalidation in struts?
What is dispatchaction?
How can we write our own interceptor and map it for action?
What are the steps of struts installation?
What are the two scope types for formbeans?
Explain about the
Explain about struts relation to html tags?
What is the purpose of @element?
Which configuration files are used in struts?
What are the features of struts 2?