|Home |Login |Registration |Struts Step by Step Tutorial |Hibernate Step by Step Tutorial |Spring Step by Step Tutorial |JSP Step by Step Tutorial |JDBC Step by Step Tutorial |Web Services Step by Step Tutorial |EJB fundamentals | ORACLE Step by Step Tutorial | SCJP 5.0 and SCJP 6.0 Study Guide | SCWCD 5.0 Study Guide | SCJP Tips
Java mock test | SCJP mock test | SCJP DUMP | SCBCD mock test |Java online test exam | JSP online test | ORACLE online test | Hibernate online test | Servlet online test | Struts online test | EJB online test | C online test | C++ online test | Aptitude online test

Java interview questions | JSP interview questions | ORACLE interview questions | Hibernate interview questions | Servlet interview questions | Struts interview questions | JDBC interview questions | C/C++ interview questions | Spring interview questions | JMS interview questions | Informatica interview questions | EJB interview questions | OOPS and Design Pattern interview questions
1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc) JobsJobs and Walkins

 

Recent Questions

!!! Struts Frequently Asked Questions !!!

What is ActionServlet?

SCJP 1.5/1.6 Exam Kit

!!!Answer!!!- From Technical Expert

The class org.apache.struts.action.ActionServlet is the called the ActionServlet. In the the Jakarta Struts Framework this class plays the role of controller. All the requests to the server goes through the controller. Controller is responsible for handling all the requests.

Struts Flow start with ActionServlet then call to process() method of RequestProcessor.

Step 1. Load ActionServlet using load-on-startup and do the following tasks.

Any struts web application contain the ActionServlet configuration in web.xml file.
On load-on-startup the servlet container Instantiate the ActionServlet .
First Task by ActionServlet : The ActionServlet takes the Struts Config file name as an init-param.
At startup, in the init() method, the ActionServlet reads the Struts Config file and load into memory.
Second Task by ActionServlet : If the user types http://localhost:8080/app/submitForm.do in the browser URL bar, the URL will be intercepted and processed by the ActionServlet since the URL has a pattern *.do, with a suffix of "do". Because servlet-mapping is
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
Third Task by ActionServlet : Then ActionServlet delegates the request handling to another class called RequestProcessor by invoking its process() method.

Step 2. ActionServlet calls process() method of RequestProcessor

Answered By : null Replied Date : Mar 27 2012
Answer :


Answered By : null Replied Date : Mar 4 2012
Answer :


Answered By : null Replied Date : Dec 29 2011
Answer :


Answered By : null Replied Date : Dec 9 2011
Answer :


Answered By : null Replied Date : Oct 23 2011
Answer :


Answered By : null Replied Date : Aug 6 2011
Answer :


Answered By : null Replied Date : Jun 19 2011
Answer :


Answered By : null Replied Date : Jun 19 2011
Answer :


Answered By : null Replied Date : Jun 18 2011
Answer :


Answered By : null Replied Date : May 30 2011
Answer :


Answered By : null Replied Date : May 4 2011
Answer :


Answered By : null Replied Date : Apr 19 2011
Answer :


Answered By : null Replied Date : Apr 2 2011
Answer :


Answered By : null Replied Date : Mar 31 2011
Answer :


Answered By : null Replied Date : Mar 30 2011
Answer :


Answered By : null Replied Date : Feb 13 2011
Answer :


Answered By : null Replied Date : Feb 13 2011
Answer :


Answered By : null Replied Date : Feb 4 2011
Answer :


Answered By : null Replied Date : Jan 16 2011
Answer :


Answered By : null Replied Date : Jan 15 2011
Answer :


Answered By : null Replied Date : Jan 1 2011
Answer :


Answered By : null Replied Date : Nov 28 2010
Answer :


Answered By : null Replied Date : Nov 4 2010
Answer :


Answered By : null Replied Date : Oct 27 2010
Answer :


Answered By : null Replied Date : Oct 5 2010
Answer :


Answered By : null Replied Date : Oct 5 2010
Answer :


Answered By : null Replied Date : Sep 29 2010
Answer :


Answered By : null Replied Date : Sep 12 2010
Answer :


Answered By : null Replied Date : Aug 22 2010
Answer :


Answered By : null Replied Date : Aug 21 2010
Answer :


Answered By : null Replied Date : May 8 2012
Answer :


Answered By : null Replied Date : Jun 25 2012
Answer :


Answered By : null Replied Date : Oct 10 2012
Answer :


Answered By : null Replied Date : Oct 21 2012
Answer :


Answered By : null Replied Date : Nov 9 2012
Answer :


Answered By : null Replied Date : Nov 14 2012
Answer :


Answered By : null Replied Date : Nov 23 2012
Answer :


Answered By : null Replied Date : Jan 2 2013
Answer :


 

You can also contribute to this answer:

Your Name:
Answer:

 
Ask Question and get answer from Expert.
View Answers List from Expert.

The information you are posting should be related to java and ORACLE technology. Not political.