A RequestDispatcher object can forward a client's request to a resource or include the resource itself in the response back to the client. A resource can be another servlet, or an HTML file, or a JSP file, etc.
A sendRedirect() method sends the client request to some other site or any resourse like another servlet, html file or a jsp file,etc.
For more information,please visit the following links:
java - Servlet Interview Questions
java servletinterview questions Hi friend,
For ServletinterviewQuestions visit to :
http://www.roseindia.net/interviewquestions/servlet/
Thanks
interview question - Servlet Interview Questions interview question What is Servlet? Need interviewquestions on Java Servlet Servlet is one of the Java technologies which is used... according to your experience.And for collection of Java ServletInterview Question you
Servlet Interview questions - Servlet Interview Questions ServletInterview questions what is RequestDispatcher in servlets?
what is SendRedirectin servlets?
give the answers for these two questions... back to the client. A resource can be another servlet, or an HTML file, or a JSP
java - Servlet Interview Questions
Java Design Patterns InterviewQuestions and Answers I need to know Java Design Patterns with the help of InterviewQuestions and Answers  ... implemented Servlet and ServletConfig interface for developing GenericServlet.And also
servlet - Servlet Interview Questions
naming convention for servlet in java Need to know the naming convention for servlet in java Hi,Yes servlet.jar and servlet-api.jar is the same file. In case of tomcat servlet.jar is just renamed to servlet
servlet questions servlet questions pls send servletinterviewquestions to anvesh2406@gmail.com
servlet - Servlet Interview Questions
, the servlet container will load the servlet class and create servlet object when it receives the first request call for that particular servlet.
But, by using the load-on-startup in web.xml for a particular servlet will make the servlet
servlet - Servlet Interview Questions
,
Service method in called by the servlet container to process a request from the browser.
When user calls a servlet, it's service method is executed by servlet container to process the user request.
So, service method is called
servlet - Servlet Interview Questions
new qustion is:
why we do not need to use main method in a servlet.... For initialization of servlet instances the init method is used.
The container initializes the servlet instance by calling the init method of the Servlet
servlet - Servlet Interview Questions
servlet sir, while performing the servlet programming why we use WEB-INF in capital letters and lib and classes folders are in small leeters
Servlet - Servlet Interview Questions Servlet example Servlet Example Hi friendweb.xml<?xml...;2.4"><servlet> <servlet-name>MultiInstance</servlet-name> <servlet-class>MultipleInstances</servlet-class> <
servlet - Servlet Interview Questions
servlet why servlet has three names ? give an example? Hi Friend,
A Servlet can have three names,
1) file path name-It defines the full path name of the servlet to the server.
2) deployment name-It is a secret
Servlet - Servlet Interview Questions Servlet stored procedure An example of Servlet stored procedure ...-param> <servlet-name>employee</servlet-name> <servlet-class>EmployeeDetail</servlet-class> </servlet> <servlet-mapping>
servlet - Servlet Interview Questions
servlet How to run servlet programs and tell me the path? I am using windows xp operating system . Hi Friend,
Please visit the following link:
http://www.roseindia.net/servlets
Servlet - Servlet Interview Questions
.
3)It is an abstract class which extends Object.
4)It implements Servlet... to GenericServlet is HttpServlet.
6)It is a protocol-independent servlet.
7)GenericServlet
servlet - Servlet Interview Questions
servlet i am using servlets.
in that servlet i have an option "logout" button.
when ever i press this "logout" button the browser page is closed with options "yes/no".
when ever press "yes" window is closed.
when ever
servlet - Servlet Interview Questions
servlet The given below is the output of my servlet program
plz give me the solution
------------------------------------------------------
------------------------------------------------------
HTTP Status 405 - HTTP
servlet - Servlet Interview Questions Servlet page to refresh the page every 3 mibutes How can i refresh my Java Servlet page at time interval of three minutes? Hi,You can use the following attribute on your html(jsp or servlet generated ) page to refresh
Servlet - Servlet Interview Questions
Servlet how to validate a servlet program using Javascript
Or
How to validate html using Javascript
or
Can i link a jsp file that is validated by using javascript to a servlet
Hi Friend,
Validate html
code - Servlet Interview Questions
code servlet service method along with an example code Hi Friend,
Servlet service() method:
Once the servlet starts getting the requests, the service() method is called by the servlet container to respond
servlets - Servlet Interview Questions
What is Server push in servlet? What is a server push method in servlet? Server push means that a server pushes content to the browser... = response.getWriter(); accesses++; out.print("Number of times this servlet
servlets - Servlet Interview Questions
is a interface which helps us to communicate with the servlet container.
There is only one... to all the components. Remember that each servlet will have its own ServletConfig... is deployed and after that only the context is available
to each servlet in the web
servlets - Servlet Interview Questions
servlets Hi I have written a servlet by extending GenericServlet. In that I have overriden init() and service()methods. when I execute the servlet only service() is getting executed bu not init(). can any one tell me the reason
servlets - Servlet Interview Questions
() method will call only once in the servlet lifecycle. as the name imply init() method initializes the servlet,probably it happens once in a servlet life cycle.
after initiating the servlet only the doPost or doGet methods(relevant http
servlets - Servlet Interview Questions
servlets How would you set an error message in the servlet,and send the user back to the JSPpage? Please give java or pseudocode examples
servlet container - Servlet Interview Questions servlet container Where the servlet container presents...; Hi friend,
A servlet container is nothing but a compiled, executable... servlets. The servlet container is the official Reference Implementation
servlets - Servlet Interview Questions
servlets If i am requesting from 2 different clients(browsers) which are in 2 different machines to a single servlet(in third machine's web container).
Does the servlets init() is called by the 2 clients or it will be called
servlets - Servlet Interview Questions
servlets I want to create timetable in servlets.. i completed this servlet with the help of the html..
now i want to modify this br me or anyohter... how can i edit this timetable and after modifying how to store
Instances in Servlet - Servlet Interview Questions
Instances in Servlet
Hi Deepak,
By default servlet is multithreaded. we can implement singleThread Model interface.How many instances will be created for multiple requests in servlet .Thank u in advance
Regarding servlet - Servlet Interview Questions
Regarding servlet i want to ask question regarding Servlet
i have created one servlet in that i have set the one integer value in the context,noe...,by running this servlet i m getting the context value ,now i have made another
servlet doubt - Servlet Interview Questions servlet doubt How do I read and output a text file from a Servlet?
How can I invoke a servlet from JavaScript? Hi Friend,
Invoke servlet from javascript:
1) create jsp file and put the following code
servlets - Servlet Interview Questions
servlets hi
i want to pass the attributes from one servlet to another servlet..
using requestdispatcher...
wat is the way to do... values retrieved in the first servlet.
for example,
RequestDispatcher rd
Servlet - Java Interview Questions
Servlet Diffrence between forward and sendRedirect method in servlet? Hi Friend,
Difference between Redirect and Forward..., the URI is changed.
* Forward will not work in a different servlet context