of 36
7/30/2019 Servlet Interview
1/36
Servlet
1. What is a servlet?Servlets are modules that extend request/response-oriented servers,such as Java-enabled webservers. For example, a servlet might be responsible for taking data in an HTML order-entry form
and applying the business logic used to update a companys order database. Servlets are to servers what applets are to browsers. Unlike applets, however, servlets have no graphical user interface.
2. Whats the advantages using servlets over using CGI?Servlets provide a way to generate dynamic documents that is both easier to write and faster to run.Servlets also address the problem of doing server-side programming with platform-specific APIs:they are developed with the Java Servlet API, a standard Java extension.
3. What are the general advantages and selling points of Servlets? A servlet can handle multiple requests concurrently, and synchronize requests. This allows servletsto support systems such as onlinereal-time conferencing. Servlets can forward requests to other servers and servlets. Thus servletscan be used to balance load among several servers that mirror the same content, and to partition asingle logical service over several servers, according to task type or organizational boundaries.
4. Which package provides interfaces and classes for writing servlets? javax5. Whats the Servlet Interface?
The central abstraction in the Servlet API is the Servlet interface. All servlets implement thisinterface, either directly or, morecommonly, by extending a class that implements it such as HttpServlet.Servlets > Generic Servlet >HttpServlet > MyServlet.The Servlet interface declares, but does not implement, methods that manage the servlet and itscommunications with clients. Servlet writers provide some or all of these methods when developinga servlet.
6. When a servlet accepts a call from a client, it receives two objects. What are they?ServletRequest (which encapsulates the communication from the client to the server) and
ServletResponse (which encapsulates the communication from the servlet back to the client).ServletRequest and ServletResponse are interfaces defined inside javax.servlet package.
7. What information does ServletRequest allow access to?Information such as the names of the parameters passed in by the client, the protocol (scheme) being used by the client, and the namesof the remote host that made the request and the server that received it. Also the input stream, asServletInputStream.Servlets use the input stream to get data from clients that use applicationprotocols such as the HTTP POST and GET methods.
8. What type of constraints can ServletResponse interface set on the client?It can set the content length and MIME type of the reply. It also provides an output stream,ServletOutputStream and a Writer through
which the servlet can send the reply data.9. Explain servlet lifecycle?
Each servlet has the same life cycle: first, the server loads and initializes the servlet (init()), then theservlet handles zero or more client requests (service()), after that the server removes the servlet(destroy()). Worth noting that the last step on some servers is done when they shut down.
10. How does HTTP Servlet handle client requests? An HTTP Servlet handles client requests through its service method. The service method supports
7/30/2019 Servlet Interview
2/36
standard HTTP client requests by dispatching each request to a method designed to handle thatrequest.
What is the servlet?
Servlet is a script, which resides and executes on server side, to create dynamic HTML. In servletprogramming we will use java language. A servlet can handle multiple requests concurrently
What is the architechture of servlet package?
Servlet Interface is the central abstraction. All servlets implements this Servlet Interface either directly or indirectly (may implement or extend Servlet Interfaces sub classes or sub interfaces)
Servlet|Generic Servlet|HttpServlet ( Class ) we will extend this class to handle GET / PUT HTTP requests|MyServlet
What is the difference between HttpServlet and GenericServlet? A GenericServlet has a service() method to handle requests.HttpServlet extends GenericServlet added newmethodsdoGet()doPost()doHead()doPut()doOptions()
doDelete()doTrace() methodsBoth these classes are abstract.
Whats the difference between servlets and applets?
Servlets executes on Servers. Applets executes on browser. Unlike applets, however, servlets have nographical user interface.
What are the uses of Servlets?
A servlet can handle multiple requests concurrently, and can synchronize requests. Servlets can forwardrequests to other servers and servlets. Thus servlets can be used to balance load among several servers.
When doGET() method will going to execute?
When we specified method=GET in HTMLExample : < form name='SSS' method='GET'>
When doPOST() method will going to execute?
When we specified method=POST in HTML< form name='SSS' method='POST' >
7/30/2019 Servlet Interview
3/36
What is the difference between Difference between doGet() and doPost()?
GET Method : Using get method we can able to pass 2K data from HTML All data we are passing to Server will be displayed in URL (request string).
POST Method : In this method we does not have any size limitation.
All data passed to server will be hidden, User cannot able to see this infoon the browser.
What is the servlet life cycle?
When first request came in for the servlet , Server will invoke init() method of the servlet. There after if anyuser request the servlet program, Server will directly executes the service() method. When Server want toremove the servlet from pool, then it will execute the destroy() method
Which code line must be set before any of the lines that use the PrintWriter?
setContentType() method must be set.
Which protocol will be used by browser and servlet to communicate?
HTTP
In how many ways we can track the sessions?
Method 1) By URL rewritingMethod 2) Using Session object
Getting Session form HttpServletRequest objectHttpSession session = request.getSession(true);
Get a Value from the session
session.getValue(session.getId());
Adding values to sessioncart = new Cart();session.putValue(session.getId(), cart);
At the end of the session, we can inactivate the session by using the following commandsession.invalidate();
Method 3) Using cookies
Method 4) Using hidden fields
How Can You invoke other web resources (or other servelt / jsp ) ?
Servelt can invoke other Web resources in two ways: indirect and direct.
Indirect Way : Servlet will return the resultant HTML to the browser which will point to another Servlet (Webresource)
Direct Way : We can call another Web resource (Servelt / Jsp) from Servelt program itself, by usingRequestDispatcher object.
7/30/2019 Servlet Interview
4/36
You can get this object using getRequestDispatcher(URL) method. You can get this object from either arequest or a Context.
Example :RequestDispatcher dispatcher = request.getRequestDispatcher(/jspsample.jsp);if (dispatcher != null)
dispatcher.forward(request, response);}
How Can you include other Resources in the Response?
Using include method of a RequestDispatcher object.
Included WebComponent (Servlet / Jsp) cannot set headers or call any method (for example, setCookie)that affects the headers of the response.
Example : RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(/banner); if (dispatcher != null) dispatcher.include(request, response);
}
What is the difference between the getRequestDispatcher(String path) ServletRequest interface andServletContext interface?
The getRequestDispatcher(String path) method of ServletRequest interface accepts parameter the path tothe resource to be included or forwarded to, which can be relative to the request of the calling servlet. If thepath begins with a / it is interpreted as relative to the current context root.
The getRequestDispatcher(String path) method of ServletContext interface cannot accepts relative paths. Allpath must sart with a / and are interpreted as relative to curent context root. If the resource is not available,or if the server has not implemented a RequestDispatcher object for that type of resource,getRequestDispatcher will return null. Your servlet should be prepared to deal with this condition.
What is the use of ServletContext?
Using ServletContext, We can access data from its environment. Servlet context is common to all Servletsso all Servlets share the information through ServeltContext.
Is there any way to generate PDFS dynamically in servlets?
We need to use iText. A open source library for java. Please refer sourceforge site for sample servletexamples.
What is the difference between using getSession(true) and getSession(false) methods?
getSession(true) - This method will check whether already a session is existing for the user. If a session isexisting, it will return that session object, Otherwise it will create new session object and return taht object.
getSession(false) - This method will check existence of session. If session exists, then it returns thereference of that session object, if not, this methods will return null.
7/30/2019 Servlet Interview
5/36
Explain the life cycle methodsof a Servlet.A: The javax.servlet.Servlet interface defines the three methods known as life-
cycle method. public void init(ServletConfig config) throws ServletException
public void service( ServletRequest req, ServletResponse res) throwsServletException, IOException
public void destroy()First the servlet is constructed, then initialized wih the init() method.Any request from client are handled initially by the service() method beforedelegating to the doXxx() methods in the case of HttpServlet.
The servlet is removed from service, destroyed with the destroy() methid,then garbaged collected and finalized.
TOP
Q:What is the difference between the getRequestDispatcher(String path)
method of javax.servlet.ServletRequest interface and javax.servlet.ServletContext interface?A: The getRequestDispatcher(String path) method of javax.servlet.ServletRequest
interface accepts parameter the path to the resource to be included or forwardedto, which can be relative to the request of the calling servlet. If the path beginswith a "/" it is interpreted as relative to the current context root.
The getRequestDispatcher(String path) method of javax.servlet.ServletContextinterface cannot accepts relative paths. All path must sart with a "/" and areinterpreted as relative to curent context root.
TOP
Q:Explain the directory structure of a web application.A: The directory structure of a web application consists of two parts.
A private directory called WEB-INFA public resource directory which contains public resource folder.
WEB-INF folder consists of 1. web.xml2. classes directory3. lib directory
TOP
Q:What are the common mechanisms used for session tracking?A: Cookies
SSL sessionsURL- rewriting
TOP
Q:Explain ServletContext.A: ServletContext interface is a window for a servlet to view it's environment. A
servlet can use this interface to get information such as initialization parametersfor the web applicationor servlet container's version. Every web application hasone and only one ServletContext and is accessible to all active resource of that
http://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23top7/30/2019 Servlet Interview
6/36
application. TOP
Q:What is preinitialization of a servlet?A: A container doesnot initialize the servlets ass soon as it starts up, it initializes a
servlet when it receives a request for that servlet first time. This is called lazyloading. The servlet specification defines the element, whichcan be specified in the deployment descriptor to make the servlet container loadand initialize the servlet as soon as it starts up. The process of loading a servletbefore any request comes in is called preloading or preinitializing a servlet.
[ Received from Amit Bhoir ] TOP
Q:What is the difference between Difference between doGet() anddoPost()?
A: A doGet() method is limited with 2k of data to be sent, and doPost() methoddoesn't have this limitation. A request string for doGet() looks like the following:http://www.allapplabs.com/svt1?p1=v1&p2=v2&...&pN=vNdoPost() method call doesn't need a long text tail after a servlet name in a
request. All parameters are stored in a request itself, not in a request string, andit's impossible to guess the data transmitted to a servlet only looking at a requeststring.
[ Received from Amit Bhoir ] TOP
Q:What is the difference between HttpServlet and GenericServlet?A: A GenericServlet has a service() method aimed to handle requests. HttpServlet
extends GenericServlet and adds support for doGet(), doPost(), doHead() methods(HTTP 1.0) plus doPut(), doOptions(), doDelete(), doTrace() methods (HTTP 1.1).Both these classes are abstract.
[ Received from Amit Bhoir ] TOP
Q:What is the difference between ServletContext and ServletConfig?A:ServletContext: Defines a set of methods that a servlet uses to communicate
with its servlet container, for example, to get the MIME type of a file, dispatchrequests, or write to a log file.The ServletContext object is contained within theServletConfig object, which the Web server provides the servlet when the servletis initialized
ServletConfig: The object created after a servlet is instantiated and its defaultconstructor is read. It is created to pass initialization information to the servlet.
http://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23tophttp://www.allappforum.com/interview_questions/servlet_interview_questions.htm#top%23top7/30/2019 Servlet Interview
7/36
Name the internal objects of JSP? Latest Answer: There are 8 implicit Objects are there ......There
are 1.Request2.Response3.Session4.Config5.out6.application7.page8.page context ...Read Answers (2) | Asked by : sejal k Answer Question
What is the different between session and cookies? Where is the session information stored? InRAM of the Client or Disk of the Client or it is stored on the server?Latest Answer: Session is stored on Server whereas cookie is on client side....amount of data insession is not limited i.e can have size of data equal to RAM size whereas cookie can takelimited amount of data....Cookie can be manually dissabled by the client ...Read Answers (1) | Asked by : jpjese
Answer Question
Describe the functions of Controller? Latest Answer: Controller as the name specifies is a part of the application server that controllesthe whole application.InMVC(if you are aware of model,view,controller) the maintasks of thecontroller are:1> Take the user inputs from the request and understand what ...Read Answers (1) | Asked by : desh12345
Answer Question
Why do we use underscore(_) symbol only with jspService() method? Latest Answer: Any methods are not be overriden by end users are typically written starting with'-'. _jspService method is not also be overriden by end users.Container invoke this method foreach request, passing the request and response object. ...Read Answers (5) | Asked by : kirankumarg
Answer Question
what are forward & include methods? Why these are used? Latest Answer: Both forward() and include() are concrete methods of the RequestDispatcherclass in the Servlet context. forward() - this method is used to show a different resource inplace of the servlet originally requested. This resource may be a jsp, a servlet etc. ...
Read Answers (1) | Asked by : RajeshKumar.Guru Answer Question
What is the Difference Between Web Container and Web Server?(Asked in Polaris Interview ,held on April 11, Chennai) Latest Answer: The Webserver: Just Receive the request from the client and forward toWebcontainer, and do the Response vice versa.Web Container: Creates HTTP Request and
http://www.geekinterview.com/question_details/73999http://www.geekinterview.com/user-profile/251646http://www.geekinterview.com/user-profile/251646http://www.geekinterview.com/question_details/73999/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/72302http://www.geekinterview.com/user-profile/295863http://www.geekinterview.com/user-profile/295863http://www.geekinterview.com/question_details/72302/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/70446http://www.geekinterview.com/user-profile/202479http://www.geekinterview.com/user-profile/202479http://www.geekinterview.com/question_details/70446/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/68447http://www.geekinterview.com/user-profile/236359http://www.geekinterview.com/user-profile/236359http://www.geekinterview.com/question_details/68447/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/65339http://www.geekinterview.com/user-profile/194186http://www.geekinterview.com/user-profile/194186http://www.geekinterview.com/question_details/65339/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/73999http://www.geekinterview.com/question_details/73999http://www.geekinterview.com/question_details/73999http://www.geekinterview.com/user-profile/251646http://www.geekinterview.com/question_details/73999/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/72302http://www.geekinterview.com/question_details/72302http://www.geekinterview.com/user-profile/295863http://www.geekinterview.com/question_details/72302/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/70446http://www.geekinterview.com/question_details/70446http://www.geekinterview.com/user-profile/202479http://www.geekinterview.com/question_details/70446/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/68447http://www.geekinterview.com/question_details/68447http://www.geekinterview.com/user-profile/236359http://www.geekinterview.com/question_details/68447/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/65339http://www.geekinterview.com/question_details/65339http://www.geekinterview.com/user-profile/194186http://www.geekinterview.com/question_details/65339/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/644607/30/2019 Servlet Interview
8/36
Response for the Servlet, calls the appropriate servlet service method (doGet or doPost) toservice ...Read Answers (1) | Asked by : khadarzone
Answer Question
what is difference between servlet container and servlet config? Latest Answer: servlet container is part of web server which provides run time environment forservlets i.e it manages the entaire life cycle for the servlets like it createsinstance,initialization,processing and destroying it. ...Read Answers (2) | Asked by : gopalraop
Answer Question
For overriding init()method any rules are there Latest Answer: There are no necessary conditions to override this particular method. In case youare overridding init(ServletConfig config), then make sure to call super.init(config). ...Read Answers (3) | Asked by : pvpadma.mca
Answer Question
Latest Answer: Custom Servlet is user defined servlet which extends HttpServlet class. ...Read Answers (1) | Asked by : prasad
Answer Question
Explain the server process how will server identifies that and response to corresponding servletand how it sends to that response to correct user ?Latest Answer: After we request for a jsp. There is a servlet called pagecompilor , which firstparses the .jsp page to .java page.then compiles that .java page and produces .class page.EX.ifwe have mypage.jsp firse myPage-jsp.javathen myPage_jsp.classthen the ...
1)What is web.xml?2)what is the filter?3)How to we create a new JSTL class?4)When we aredeveloping the project which collections mostly used?5)Difference betweenreqeust.getAttribute,and request.getParameter? Latest Answer: 1)What is web.xml?web.xml is nothing but a deployment descriptor. It describes a
web applicants deployment settings.2)what is the filter?It is an Pluggable web componenetdevice it allow us to implement or add pre processing or post processing logic ...Read Answers (1) | Asked by : Ramu
Answer Question
Latest Answer: Service() method is used to handle requests and it is invoked by theServletContainer. ...
http://www.geekinterview.com/question_details/64460http://www.geekinterview.com/user-profile/132010http://www.geekinterview.com/user-profile/132010http://www.geekinterview.com/question_details/64460/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/64448http://www.geekinterview.com/user-profile/178250http://www.geekinterview.com/user-profile/178250http://www.geekinterview.com/question_details/64448/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/61363http://www.geekinterview.com/user-profile/93125http://www.geekinterview.com/user-profile/93125http://www.geekinterview.com/question_details/61363/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/60137http://www.geekinterview.com/question_details/60137/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/56681http://www.geekinterview.com/question_details/56681/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/64460http://www.geekinterview.com/user-profile/132010http://www.geekinterview.com/question_details/64460/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/64448http://www.geekinterview.com/question_details/64448http://www.geekinterview.com/user-profile/178250http://www.geekinterview.com/question_details/64448/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/61363http://www.geekinterview.com/question_details/61363http://www.geekinterview.com/user-profile/93125http://www.geekinterview.com/question_details/61363/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/60137http://www.geekinterview.com/question_details/60137http://www.geekinterview.com/question_details/60137/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/59656http://www.geekinterview.com/question_details/56681http://www.geekinterview.com/question_details/56681http://www.geekinterview.com/question_details/56681/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/554527/30/2019 Servlet Interview
9/36
Read Answers (5) | Asked by : raj
Answer Question
What is the difference between doGet methods ,doGet()and service() used in servlet?can we useservice() methods replace of doGet() and doPost()?Read Answers (7) | Asked by : ajay
Answer Question
View Question | Asked by : JavaPassion
Answer Question
protected. Latest Answer: HttpServlet class extends the GenericServlet class.So it has two service methods.(1) public void service(ServletRequest req,ServletResponce res);(2) protected voidservice(HttpServletRequest req,HttpServletResponce res);Thus the the modifier for ...Read Answers (6) | Asked by : sujatham
Answer Question
Latest Answer: A Servlet is that portion of yourJ2EE application which handles ur requets andwhere the buisness logic is implemented and depending on the request aresponse object isgenerated which is sent back to the client.AServlet container is that portion of ...Read Answers (7) | Asked by : sujatham
Answer Question
Class java.lang.ObjectLatest Answer: javax.servlet.servlet ->Interface ...Read Answers (2) | Asked by : sujatham
Answer Question
The characteristics of servlets that have gained them a wide spread acceptance are asfollows:1.Servlets are efficient:The initialization code for a servlet is executed only when the
servlet is executed View Question | Asked by : sujatham Answer Question
http://www.geekinterview.com/question_details/55452http://www.geekinterview.com/question_details/55452/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/54790http://www.geekinterview.com/question_details/54790/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/54116http://www.geekinterview.com/question_details/54116/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/53832http://www.geekinterview.com/user-profile/15771http://www.geekinterview.com/user-profile/15771http://www.geekinterview.com/question_details/53832/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/53829http://www.geekinterview.com/user-profile/15771http://www.geekinterview.com/user-profile/15771http://www.geekinterview.com/question_details/53829/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/53200http://www.geekinterview.com/user-profile/15771http://www.geekinterview.com/user-profile/15771http://www.geekinterview.com/question_details/53200/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/53197http://www.geekinterview.com/user-profile/15771http://www.geekinterview.com/user-profile/15771http://www.geekinterview.com/question_details/53197/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/55452http://www.geekinterview.com/question_details/55452/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/54790http://www.geekinterview.com/question_details/54790http://www.geekinterview.com/question_details/54790http://www.geekinterview.com/question_details/54790/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/54116http://www.geekinterview.com/question_details/54116http://www.geekinterview.com/question_details/54116http://www.geekinterview.com/question_details/54116/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/53832http://www.geekinterview.com/question_details/53832http://www.geekinterview.com/user-profile/15771http://www.geekinterview.com/question_details/53832/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/53829http://www.geekinterview.com/question_details/53829http://www.geekinterview.com/user-profile/15771http://www.geekinterview.com/question_details/53829/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/53200http://www.geekinterview.com/question_details/53200http://www.geekinterview.com/user-profile/15771http://www.geekinterview.com/question_details/53200/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/53197http://www.geekinterview.com/question_details/53197http://www.geekinterview.com/user-profile/15771http://www.geekinterview.com/question_details/53197/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/52948http://www.geekinterview.com/question_details/529487/30/2019 Servlet Interview
10/36
Latest Answer: Connection Pooling is like u have created a set of connection pools and hav storedthem in some data structure.The benefit which u get by doing this is everytime u get a newrequest u can use one of the available connections u don need to establish a ...Read Answers (6) | Asked by : kiranmaye
Answer Question
What is the need for having HTTPServlet class when we already have GenericServlet classwhich can handle all type of requests?
How many Request, Response & session instance you can create for N number of uesr requestfrom a. user request from same userb. user request from diffrent userRead Answers (2) | Asked by : nitin j
Answer Question
Latest Answer: The purpose of hidden fields, cookies and session objects is to transfer databetween different pages of an application. ...Read Answers (3) | Asked by : chandra
Answer Question
Latest Answer: Using the redirect method ,we can forward the request to servlet that is either inthe same servlet container or in other container .When we are using request dispatchmethod ,we can forward the request only to a servlet that is in the current container. ...Read Answers (1) | Asked by : hemraj
Answer Question
Latest Answer: You can use the following code to determine whether the thread in which yourcode is getting executed is daemon or not.if(Thread.currentThread().isDaemon()) { //logicto execute if daemon.} else { ...Read Answers (1) | Asked by : naresh reddy
Answer Question
Latest Answer: Using this method is pretty straight-forward. BUt there is a simple catch: No datashould be committed to the servlet output stream before the redirection occurs.In case datahas been committed and then redirection is forced, an IllegalStateException ...Read Answers (2) | Asked by : rajesh
Answer Question
http://www.geekinterview.com/question_details/52948http://www.geekinterview.com/user-profile/99176http://www.geekinterview.com/user-profile/99176http://www.geekinterview.com/question_details/52948/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/51981http://www.geekinterview.com/question_details/51981/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/51876http://www.geekinterview.com/question_details/51876/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/51105http://www.geekinterview.com/question_details/51105/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/49527http://www.geekinterview.com/question_details/49527/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/49500http://www.geekinterview.com/question_details/49500/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/52948http://www.geekinterview.com/user-profile/99176http://www.geekinterview.com/question_details/52948/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/52324http://www.geekinterview.com/question_details/52324http://www.geekinterview.com/question_details/51981http://www.geekinterview.com/question_details/51981http://www.geekinterview.com/question_details/51981http://www.geekinterview.com/question_details/51981/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/51876http://www.geekinterview.com/question_details/51876http://www.geekinterview.com/question_details/51876/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/51105http://www.geekinterview.com/question_details/51105http://www.geekinterview.com/question_details/51105/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/49527http://www.geekinterview.com/question_details/49527http://www.geekinterview.com/question_details/49527/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/49500http://www.geekinterview.com/question_details/49500http://www.geekinterview.com/question_details/49500http://www.geekinterview.com/question_details/49500/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/7/30/2019 Servlet Interview
11/36
Latest Answer: if we made some chage in web.xml and chang reflect in progm wdout serverrestrt thn its called hot deployment ...Read Answers (3) | Asked by : deepti_charolkar
Answer Question
Latest Answer: Servlet Technology is an implementation of the CGI standard, much better thanthat. It allows you to create dynamic web applications as opposed to the static HTML. ...Read Answers (2) | Asked by : nirupama
Answer Question
Latest Answer: The use of the SingleThreadModel interface guarantees that only one thread at atime will execute in a given servlet instancesservice method . It is important to note thatthis guarantee only applies to each servlet instance, since the container may ...
Read Answers (4) | Asked by : Raviranjan Kumar Sinha Answer Question
Explain about Inter-Servlet communication and business reason for using Inter-ServletcommunicationRead Answers (1) | Asked by : Ramesh
Answer Question
Latest Answer: The init(ServletConfig) method is defined in theServlet interface . It has beenimplemented by the GenericServlet class. The implementation of thisinit method in theGenericServlet just stores the ServletConfig object in some private variable ...Read Answers (1) | Asked by : jayalakshmic
Answer Question
I m confuse. Latest Answer: in the mvc 1 all the view model and presention were keept at only one place butin mvc 2all thse thingshas putted together ...Read Answers (2) | Asked by : Chandra Kumar
Answer Question
Latest Answer: It is the servlet container that is responsible for initializing and managing theservlet life cycle. ...Read Answers (2) | Asked by : Raghavendra Kamat
Answer Question
http://www.geekinterview.com/question_details/49491http://www.geekinterview.com/user-profile/85648http://www.geekinterview.com/user-profile/85648http://www.geekinterview.com/question_details/49491/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/48118http://www.geekinterview.com/question_details/48118/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/48042http://www.geekinterview.com/question_details/48042/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/47823http://www.geekinterview.com/question_details/47823/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/47483http://www.geekinterview.com/user-profile/99317http://www.geekinterview.com/user-profile/99317http://www.geekinterview.com/question_details/47483/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/46997http://www.geekinterview.com/question_details/46997/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/46216http://www.geekinterview.com/question_details/46216/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/49491http://www.geekinterview.com/question_details/49491http://www.geekinterview.com/user-profile/85648http://www.geekinterview.com/question_details/49491/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/48118http://www.geekinterview.com/question_details/48118http://www.geekinterview.com/question_details/48118/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/48042http://www.geekinterview.com/question_details/48042http://www.geekinterview.com/question_details/48042/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/47823http://www.geekinterview.com/question_details/47823http://www.geekinterview.com/question_details/47823http://www.geekinterview.com/question_details/47823/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/47483http://www.geekinterview.com/question_details/47483http://www.geekinterview.com/user-profile/99317http://www.geekinterview.com/question_details/47483/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/46997http://www.geekinterview.com/question_details/46997http://www.geekinterview.com/question_details/46997/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/46216http://www.geekinterview.com/question_details/46216http://www.geekinterview.com/question_details/46216/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/44702http://www.geekinterview.com/question_details/447027/30/2019 Servlet Interview
12/36
What is the difference between Single Thread Model and Multi Thread Model?In which situationwe use the Single Threaded Model?Read Answers (1) | Asked by : madhu
Answer Question
Latest Answer: URL-Uniform Resource Locator & URI-Unifrom Resource Identifier. ...Read Answers (1) | Asked by : madhu
Answer Question
Latest Answer: In cookies,Session information is stored at client side in a folder called cookie, ifthe browser is set to cookie disable mode then this approach will not work.In URL rewriting, itis stored within each URL & attached with header. Except then cookies ...Read Answers (1) | Asked by : krishna Ballabh
Answer Question
Latest Answer: SingleThreadModel technique works well for low volume sites, it does not scalewell.All requests that will come for the SingleThreadModel resource would be available only forone user at a time. ...Read Answers (3) | Asked by : guptakcsg
Answer Question
Latest Answer: Cookies can store bit of information only, ie) less than 4kb of information can
stored and 20 cookies per url and 300 users information can store. Every time server set thecookie it has to check whether it got stored or not by accessing the cookie with ...Read Answers (1) | Asked by : dile_sahoo
Answer Question
Latest Answer: What I found is there is nothing called namedDispatcher. But there isa method called getNamedDispatcher() in servletcontext which is similar togetRequestDispatcher(). getNamedDispatcher() ...Read Answers (1) | Asked by : kiran.pathipaka
Answer Question
Latest Answer: Yes. Non-distributed technologies would mean objects in a single JVM. Within asingle JVM, objects are always passed by reference.When it comes to distributed, which means2 JVMs running either on the same or different machines, objects are passed by ...Read Answers (1) | Asked by : enjoy
Answer Question
http://www.geekinterview.com/question_details/44702http://www.geekinterview.com/question_details/44702/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/44700http://www.geekinterview.com/question_details/44700/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/44381http://www.geekinterview.com/user-profile/91554http://www.geekinterview.com/user-profile/91554http://www.geekinterview.com/question_details/44381/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/43684http://www.geekinterview.com/user-profile/88388http://www.geekinterview.com/user-profile/88388http://www.geekinterview.com/question_details/43684/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/43603http://www.geekinterview.com/question_details/43603/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/42764http://www.geekinterview.com/user-profile/82623http://www.geekinterview.com/user-profile/82623http://www.geekinterview.com/question_details/42764/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/42450http://www.geekinterview.com/user-profile/77310http://www.geekinterview.com/user-profile/77310http://www.geekinterview.com/question_details/42450/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/44702http://www.geekinterview.com/question_details/44702/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/44700http://www.geekinterview.com/question_details/44700http://www.geekinterview.com/question_details/44700/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/44381http://www.geekinterview.com/question_details/44381http://www.geekinterview.com/question_details/44381http://www.geekinterview.com/user-profile/91554http://www.geekinterview.com/question_details/44381/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/43684http://www.geekinterview.com/question_details/43684http://www.geekinterview.com/question_details/43684http://www.geekinterview.com/user-profile/88388http://www.geekinterview.com/question_details/43684/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/43603http://www.geekinterview.com/question_details/43603http://www.geekinterview.com/question_details/43603/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/42764http://www.geekinterview.com/question_details/42764http://www.geekinterview.com/user-profile/82623http://www.geekinterview.com/question_details/42764/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/42450http://www.geekinterview.com/question_details/42450http://www.geekinterview.com/user-profile/77310http://www.geekinterview.com/question_details/42450/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/422867/30/2019 Servlet Interview
13/36
Latest Answer: 20 cookies for per website and 300 cookies per uniqe user, also they can limiteach cookie's size to 4096 bytes. ...
Latest Answer: The Servlet tunneling can be thought as a way to use an existing road ofcommunication (HTTP) and create a sub-protocol within it to perform specific tasks. ...Read Answers (1) | Asked by : gothlururaaja
Answer Question
Latest Answer: According to MVC2 the purpose of addition of the controller was to just separatethe dynamic part of the application from the static part and for that the dynamic part giventhe name "view" is handled as JSP's . while the static part as controller ...Read Answers (6) | Asked by : Prabhakaran
Answer Question
Latest Answer: There is MVC means Model, View & Controller, There is no MVC1 & MVC2, There isModel1 & Model2 Architecture ...Read Answers (5) | Asked by : sarithareddy
Answer Question
Latest Answer: It does not effect, If U call init() inside destory() method.Coz these arelifecycle methods, so container only call these methods....If u written init() inside destor() butdestoy() method can not works. ...Read Answers (9) | Asked by : sarithareddy
Answer Question
Latest Answer: GenericServlet is an abstract class because its upto the user how he wants it touse thelife-cycle methods of the servlet and also the server needs to make sure that all the lifecycle methods of the servlets have to be implemented.So if a class is extending ...Read Answers (8) | Asked by : SaurabhTags : Abstract
Answer Question
Latest Answer: See by dynamic content we mean the content which is decided atruntime.Depending on the request which a user is sending we get a respose which is dependenton the request and it is not fixed.For example when a user enters his user name and passwordon ...Read Answers (4) | Asked by : radhika
Answer Question
http://www.geekinterview.com/question_details/41593http://www.geekinterview.com/user-profile/3562http://www.geekinterview.com/user-profile/3562http://www.geekinterview.com/question_details/41593/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/40726http://www.geekinterview.com/question_details/40726/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/40018http://www.geekinterview.com/question_details/40018/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/40017http://www.geekinterview.com/question_details/40017/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/39424http://www.geekinterview.com/tags/abstract/http://www.geekinterview.com/question_details/39424/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/39177http://www.geekinterview.com/question_details/39177/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/41593http://www.geekinterview.com/question_details/41593http://www.geekinterview.com/user-profile/3562http://www.geekinterview.com/question_details/41593/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/40726http://www.geekinterview.com/question_details/40726http://www.geekinterview.com/question_details/40726/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/40018http://www.geekinterview.com/question_details/40018http://www.geekinterview.com/question_details/40018http://www.geekinterview.com/question_details/40018/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/40017http://www.geekinterview.com/question_details/40017http://www.geekinterview.com/question_details/40017/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/39424http://www.geekinterview.com/question_details/39424http://www.geekinterview.com/tags/abstract/http://www.geekinterview.com/question_details/39424/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/39177http://www.geekinterview.com/question_details/39177http://www.geekinterview.com/question_details/39177/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/7/30/2019 Servlet Interview
14/36
Latest Answer: Apache tomcat testing version can handle only 50 request at a time. ...Read Answers (2) | Asked by : ashu
Answer Question
Latest Answer: webcontainer create an object for servlet class.for createing an object use thenewInstance() method.this object automaticaly create a defaultconstructor so we can notcreate parametarised constructior for this object.praveen kumar sakhamudi ...Read Answers (5) | Asked by : ashish
Answer Question
What is the difference between doGet() and doPost() methods of a HttpServlet and when touse each one?Read Answers (11) | Asked by : rs
Answer Question
When to use session scope1?How session object is managed by the webcontainer?When thesession object is created and when it is removed?
What is difference between HttpServlet and GenericServlet. and when to use and why. what isthe importance of each.Read Answers (6) | Asked by : Enayat
Answer Question
What factors effects on selecting a technology. In deatail, A customer came with SRS, how toselect a technology (java,.net,c,c++) to develop a application?Read Answers (1) | Asked by : Aruna
Answer Question
Latest Answer: Yes we can declare class level variable in a servlet but we can also use it in theclass but as we know taht it is not in our hands to make the instaniate a servlet so cannot usethat class level variable by instaniating ...Read Answers (1) | Asked by : Raj
http://www.geekinterview.com/question_details/38302http://www.geekinterview.com/question_details/38302/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/37814http://www.geekinterview.com/question_details/37814/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/37500http://www.geekinterview.com/question_details/37500/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/37002http://www.geekinterview.com/question_details/37002/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/36743http://www.geekinterview.com/question_details/36743/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/36450http://www.geekinterview.com/question_details/38302http://www.geekinterview.com/question_details/38302http://www.geekinterview.com/question_details/38302http://www.geekinterview.com/question_details/38302/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/37814http://www.geekinterview.com/question_details/37814http://www.geekinterview.com/question_details/37814http://www.geekinterview.com/question_details/37814/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/37500http://www.geekinterview.com/question_details/37500http://www.geekinterview.com/question_details/37500http://www.geekinterview.com/question_details/37500/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/37408http://www.geekinterview.com/question_details/37408http://www.geekinterview.com/question_details/37002http://www.geekinterview.com/question_details/37002http://www.geekinterview.com/question_details/37002http://www.geekinterview.com/question_details/37002http://www.geekinterview.com/question_details/37002/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/36743http://www.geekinterview.com/question_details/36743http://www.geekinterview.com/question_details/36743http://www.geekinterview.com/question_details/36743/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/36450http://www.geekinterview.com/question_details/364507/30/2019 Servlet Interview
15/36
Answer Question
Latest Answer: servlet lifecycle consists of 5methods but most of the time it concentrates only onthree methods .Those methods are init(ServletConfig config) service(ServletRequestreq,ServletResponse res) ...Read Answers (2) | Asked by : Ferdousi
Answer Question
Latest Answer: MVC Describes that each part of responsibiltiesM-Model is responsible for businessprocess and business dataV-view is responsible for response content to dispatch the clientC-Controller is responsible for to control the requset and response In MVC1, Model ...Read Answers (8) | Asked by : pbv_krishnamraju
Answer Question
Latest Answer: The question should be like - What is the difference betweenrequestdispatcher.forward and response.sendredirect? The response will not be sent back tothe client and so the client will not know about this change of resource on the server. for ...Read Answers (5) | Asked by : Navya
Answer Question
Latest Answer: doPUT: The PUT method is a complement of a GET request, and PUT storesthe entity body at the location specified by the URI. It is similar to the PUT function inFTP.doDELETE: The DELETE method is used to delete a document from the server. The
document ...Read Answers (2) | Asked by : mail_2_mahendran Answer Question
Latest Answer: If the servlet implements SingleThreadModelinterface then many instances ofthat servlet can be created by the Container otherwise,(i) If the web application is adistributed webapplication then each JVM will have only one servlet instance no matter ...Read Answers (10) | Asked by : sadashivarao
Answer Question
Latest Answer: Yes , of course you can use the constructor instead of init().Theres nothing tostop you. But you shouldnt. The original reason for init() was that ancient versions of Javacouldnt dynamically invoke constructors with arguments, so there was no way ...Read Answers (7) | Asked by : Abhijit Datta
Answer Question
http://www.geekinterview.com/question_details/36450/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/36183http://www.geekinterview.com/question_details/36183/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/35159http://www.geekinterview.com/user-profile/61100http://www.geekinterview.com/user-profile/61100http://www.geekinterview.com/question_details/35159/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/35047http://www.geekinterview.com/question_details/35047/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/34819http://www.geekinterview.com/user-profile/60228http://www.geekinterview.com/user-profile/60228http://www.geekinterview.com/question_details/34819/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/34528http://www.geekinterview.com/user-profile/31001http://www.geekinterview.com/user-profile/31001http://www.geekinterview.com/question_details/34528/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/33812http://www.geekinterview.com/question_details/33812/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/36450/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/36183http://www.geekinterview.com/question_details/36183http://www.geekinterview.com/question_details/36183/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/35159http://www.geekinterview.com/question_details/35159http://www.geekinterview.com/user-profile/61100http://www.geekinterview.com/question_details/35159/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/35047http://www.geekinterview.com/question_details/35047http://www.geekinterview.com/question_details/35047http://www.geekinterview.com/question_details/35047/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/34819http://www.geekinterview.com/question_details/34819http://www.geekinterview.com/user-profile/60228http://www.geekinterview.com/question_details/34819/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/34528http://www.geekinterview.com/question_details/34528http://www.geekinterview.com/question_details/34528http://www.geekinterview.com/user-profile/31001http://www.geekinterview.com/question_details/34528/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/33812http://www.geekinterview.com/question_details/33812http://www.geekinterview.com/question_details/33812/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/7/30/2019 Servlet Interview
16/36
Can a webcontainer creates another cookie eventhough we r set the maxage of already createdcookie while sending second request within period of setmaxage of that cookie
If we put some request, intially either doget() or dopost() is getting invoked? why not anyservlet life cycle method is not getting invoked?Then why don't we include this doget() anddopost() in the servlet life cyclemethods ?Read Answers (7) | Asked by : Roshini
Answer Question
While using cookies, when the browser is shut down. will the data be available at next open ofbrowser. If not available, how to over come that.Read Answers (5) | Asked by : Srini99
Answer Question
Latest Answer: 1)when the application is stopped2)when a class is replaced with the newclass3)when there is no memory to operate. ...Read Answers (6) | Asked by : sachinTest
Answer Question
Latest Answer: When we make a request to the application webcontainer makes the request andresponse object and creates the servlet instance.After it calls the servlet life cycles methodslike init().After completing the intialization it calls the service()method passing ...Read Answers (4) | Asked by : ram
Answer Question
Latest Answer: pure servlet means we create any java objets that is implemented fromjavax.servler.Servlet interface . ...Read Answers (1) | Asked by : B.Purandhar reddy
Answer Question
Latest Answer: The only way to know for sure is to set a cookie on a response, and see ifit comesback on the following request. You have absolutely no clue fromlooking just at the currentrequest. Just as an example, I run Netscape6, configured to warn ...Read Answers (1) | Asked by : venkat
http://www.geekinterview.com/question_details/33316http://www.geekinterview.com/user-profile/52256http://www.geekinterview.com/user-profile/52256http://www.geekinterview.com/question_details/33316/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/33263http://www.geekinterview.com/user-profile/55745http://www.geekinterview.com/user-profile/55745http://www.geekinterview.com/question_details/33263/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/32847http://www.geekinterview.com/user-profile/52716http://www.geekinterview.com/user-profile/52716http://www.geekinterview.com/question_details/32847/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/32689http://www.geekinterview.com/question_details/32689/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/32354http://www.geekinterview.com/question_details/32354/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/32182http://www.geekinterview.com/question_details/33801http://www.geekinterview.com/question_details/33801http://www.geekinterview.com/question_details/33316http://www.geekinterview.com/question_details/33316http://www.geekinterview.com/question_details/33316http://www.geekinterview.com/user-profile/52256http://www.geekinterview.com/question_details/33316/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/33263http://www.geekinterview.com/question_details/33263http://www.geekinterview.com/question_details/33263http://www.geekinterview.com/user-profile/55745http://www.geekinterview.com/question_details/33263/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/32847http://www.geekinterview.com/question_details/32847http://www.geekinterview.com/question_details/32847http://www.geekinterview.com/user-profile/52716http://www.geekinterview.com/question_details/32847/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/32689http://www.geekinterview.com/question_details/32689http://www.geekinterview.com/question_details/32689/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/32354http://www.geekinterview.com/question_details/32354http://www.geekinterview.com/question_details/32354/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/32182http://www.geekinterview.com/question_details/32182http://www.geekinterview.com/question_details/321827/30/2019 Servlet Interview
17/36
Answer Question
Latest Answer: hi,Servlet is a webcomponent which is used for the generating dyanamiccontent.Because most of the web applications are dynamic in nature .In order to generate thedyanmic content we are using the servlets. ...Read Answers (8) | Asked by : padmakalyani
Answer Question
Latest Answer: Hi, you are perfectly right in your explanation. but there is a small mistake inyour writting. the refresh header is not a part of request header rather it is a header ofresponse. response.setHeader("Refresh","300; ...Read Answers (3) | Asked by : sadashivarao
Answer Question
Latest Answer: If u used a constuctor then no probs it's working fine but u cantused servletconfig and u cant passed argument constructor b'coz only first time yr constructorhas called and for other request directlly service method called so we cant able to ...Read Answers (4) | Asked by : javadeep
Answer Question
Hi Guys, Can we write destroy() method in the init() method of a Servelt. if we can, what willhappen? if we cant , why we cant?with regards, santh
Latest Answer: Hi,Good to see the ways of communication between servlets.My question goes as:The servlet communication when they are running in different servlet container. sOne andsTwo are two servlets, here can we include sTwo's output in response of sOne's?Thank ...Read Answers (4) | Asked by : sudhakar_bvr
Answer Question
Latest Answer: doGET() is better ...Read Answers (6) | Asked by : neelima
Answer Question
Latest Answer: True Aditya... ...Read Answers (2) | Asked by : Nagender
Answer Question
http://www.geekinterview.com/question_details/32182/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/32145http://www.geekinterview.com/question_details/32145/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/31726http://www.geekinterview.com/user-profile/31001http://www.geekinterview.com/user-profile/31001http://www.geekinterview.com/question_details/31726/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/30953http://www.geekinterview.com/user-profile/49274http://www.geekinterview.com/user-profile/49274http://www.geekinterview.com/question_details/30953/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/29221http://www.geekinterview.com/user-profile/27262http://www.geekinterview.com/user-profile/27262http://www.geekinterview.com/question_details/29221/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/29043http://www.geekinterview.com/question_details/29043/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/28790http://www.geekinterview.com/question_details/28790/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/32182/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/32145http://www.geekinterview.com/question_details/32145http://www.geekinterview.com/question_details/32145/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/31726http://www.geekinterview.com/question_details/31726http://www.geekinterview.com/user-profile/31001http://www.geekinterview.com/question_details/31726/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/30953http://www.geekinterview.com/question_details/30953http://www.geekinterview.com/user-profile/49274http://www.geekinterview.com/question_details/30953/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/30004http://www.geekinterview.com/question_details/30004http://www.geekinterview.com/question_details/29221http://www.geekinterview.com/question_details/29221http://www.geekinterview.com/user-profile/27262http://www.geekinterview.com/question_details/29221/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/29043http://www.geekinterview.com/question_details/29043http://www.geekinterview.com/question_details/29043http://www.geekinterview.com/question_details/29043/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/28790http://www.geekinterview.com/question_details/28790http://www.geekinterview.com/question_details/28790/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/287567/30/2019 Servlet Interview
18/36
Latest Answer: Use can store variables in session , but u can store it in object form only.if it isprimitive type u can use wrapper classes to convert it intoobject.session.setAttribute("test","xyzp");String str=(String)session.getAttribute("test");whileretrieving ...Read Answers (1) | Asked by : Sandy
Answer Question
Latest Answer: we can create connection pooling using tomcatFor that 1. we need to download 3jar files a. commons-dbcp-1.2.jar b. commons-collections-3.1.jar c. commons-pool-1.3.jar 2.we want to add an entry in server.xml of the tomcat factoryorg.apache.commons.dbcp.BasicDataSourceFactory driverClassName oracle.jdbc.OracleDriverurl jdbc:oracle:thin:@localhost:1521:orcl username anand password pass maxActive 20 maxIdle10 maxWait -1 for ...Read Answers (2) | Asked by : rama krishna
Answer Question
Suppose there are 15 links on the homepage of a site and each link creates a new request, howyour servlet controller would handle it? (Assuming you are using MVC-2)Read Answers (3) | Asked by : Anoop
Answer Question
Latest Answer: when we send any request to the servlet, that request tryies to find servlet 1st.secondservlet executing following sequence of methodinit()service()destroy()so the 1st timerequest to servlet, response time is high than 2nd request so to avoid ...Read Answers (2) | Asked by : adepu
Answer Question
Latest Answer: Jagmohan, I am really happy after saw your answer.It is the perfect andSuitable answers.Thanks & Regards,Nagaraju. ...Read Answers (3) | Asked by : Rupesh
Answer Question
Suppose number of servlets/jsps from various web applications want to access shared data,what is the mechanism to achieve the same?Read Answers (9) | Asked by : hmashruf
Answer Question
http://www.geekinterview.com/question_details/28756http://www.geekinterview.com/question_details/28756/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/28202http://www.geekinterview.com/question_details/28202/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/27786http://www.geekinterview.com/question_details/27786/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/27750http://www.geekinterview.com/question_details/27750/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/27440http://www.geekinterview.com/question_details/27440/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/26068http://www.geekinterview.com/user-profile/29033http://www.geekinterview.com/user-profile/29033http://www.geekinterview.com/question_details/26068/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/28756http://www.geekinterview.com/question_details/28756/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/28202http://www.geekinterview.com/question_details/28202http://www.geekinterview.com/question_details/28202/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/27786http://www.geekinterview.com/question_details/27786http://www.geekinterview.com/question_details/27786http://www.geekinterview.com/question_details/27786/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/27750http://www.geekinterview.com/question_details/27750http://www.geekinterview.com/question_details/27750/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/27440http://www.geekinterview.com/question_details/27440http://www.geekinterview.com/question_details/27440/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/26068http://www.geekinterview.com/question_details/26068http://www.geekinterview.com/question_details/26068http://www.geekinterview.com/user-profile/29033http://www.geekinterview.com/question_details/26068/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/25283http://www.geekinterview.com/question_details/252837/30/2019 Servlet Interview
19/36
Latest Answer: Hi,Theservlet specifications clearly states that we can not explicity destroy theservlet instance by coding what so ever in destroy method.We can only perform clean upoperations.So, if we call the service method in init, it will be called and Say I ...Read Answers (6) | Asked by : Yogesh
Answer Question
Can we override the service method?if we can do that then why do we override onlydoGET()and doPost() methods if the servlet is of protocol specific?Read Answers (5) | Asked by : anandkolam
Answer Question
Latest Answer: cgi and servlets are used to develop webapplication only.cgi is a oldest technique.the main drawback of cgi is1. starting process is very expensive2. it performs very poor. ...Read Answers (5) | Asked by : venkata narayana
Answer Question
Latest Answer: hi,I apprciate ur answer,if u know jsp then tell me in jsp if there is includedirective element then why they have provided include actionelement. ...Read Answers (3) | Asked by : Asif
Answer Question
What is differents between forword(),include() and sendRedirect()? In which circumtances allare used? Give Proper Examles.Read Answers (4) | Asked by : shivam_it3
Answer Question
Latest Answer: String Buffer is peer class of String which provide much of the functionalityof strings . "String represent fixed length immutable character sequences" Where as "StringBuffer Represent grow able and writeable character sequences" all string ...Read Answers (4) | Asked by : roja
Answer Question
What is the difference betweem getRequestDispatcher() available as part of ServletContext andServletRequestRead Answers (10) | Asked by : divya_a
Answer Question
http://www.geekinterview.com/question_details/25283http://www.geekinterview.com/question_details/25283/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/25048http://www.geekinterview.com/user-profile/27867http://www.geekinterview.com/user-profile/27867http://www.geekinterview.com/question_details/25048/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/24421http://www.geekinterview.com/question_details/24421/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/23807http://www.geekinterview.com/question_details/23807/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/23735http://www.geekinterview.com/user-profile/14360http://www.geekinterview.com/user-profile/14360http://www.geekinterview.com/question_details/23735/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/23636http://www.geekinterview.com/question_details/23636/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/23494http://www.geekinterview.com/user-profile/18682http://www.geekinterview.com/user-profile/18682http://www.geekinterview.com/question_details/23494/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/25283http://www.geekinterview.com/question_details/25283/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/25048http://www.geekinterview.com/question_details/25048http://www.geekinterview.com/question_details/25048http://www.geekinterview.com/user-profile/27867http://www.geekinterview.com/question_details/25048/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/24421http://www.geekinterview.com/question_details/24421http://www.geekinterview.com/question_details/24421/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/23807http://www.geekinterview.com/question_details/23807http://www.geekinterview.com/question_details/23807/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/23735http://www.geekinterview.com/question_details/23735http://www.geekinterview.com/question_details/23735http://www.geekinterview.com/user-profile/14360http://www.geekinterview.com/question_details/23735/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/23636http://www.geekinterview.com/question_details/23636http://www.geekinterview.com/question_details/23636/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/23494http://www.geekinterview.com/question_details/23494http://www.geekinterview.com/question_details/23494http://www.geekinterview.com/user-profile/18682http://www.geekinterview.com/question_details/23494/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/7/30/2019 Servlet Interview
20/36
Can we write bussiness methods in servlets? if yes, then how can u access that from out side ofthe servlets?Read Answers (4) | Asked by : sivasivasiva
Answer Question
Latest Answer: Session is an object of method maintaining state which is act of preserving theinformation from one page to another page. we can managesessions in two ways using cookiesusing URL rewriting ...Read Answers (5) | Asked by : karthik
Answer Question
Latest Answer: Hi, Clearly, it depends on the level of details one needs to capture, let's sayXYZ123.com wants to place a promotional ad on a frequently visited page.For simplicity, let'sconfine to one particular page (say XYZPage.jsp):(a) How many times users visit ...Read Answers (4) | Asked by : payal kalra
Answer Question
I can do every thing using jsp itself,then what is the need of using servlet?in which situation,we must use servlet with jsp?Read Answers (1) | Asked by : Ganesh
Answer Question
Latest Answer: session 's invalidate method is used when the session will no longer exist or whenfor a particular client is leaving the session Eg:during the logout.sessiondestroyed is a methodof HttpSessionListener ,and this is called when the session is being ...Read Answers (1) | Asked by : Shekhar
Answer Question
Latest Answer: Guys pls refer these ... Please ensure your answer is not mislead somebody..http:// java .sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Servlet.htmlpublic voiddestroy()Called by the servlet container to indicate to a servlet that the servlet is ...Read Answers (10) | Asked by : nagaraj
Answer Question
http://www.geekinterview.com/question_details/23485http://www.geekinterview.com/user-profile/22684http://www.geekinterview.com/user-profile/22684http://www.geekinterview.com/question_details/23485/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/22848http://www.geekinterview.com/question_details/22848/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/22718http://www.geekinterview.com/question_details/22718/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/22706http://www.geekinterview.com/question_details/22706/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/22662http://www.geekinterview.com/question_details/22662/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/22607http://www.geekinterview.com/question_details/22607/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/23485http://www.geekinterview.com/question_details/23485http://www.geekinterview.com/question_details/23485http://www.geekinterview.com/user-profile/22684http://www.geekinterview.com/question_details/23485/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/22848http://www.geekinterview.com/question_details/22848http://www.geekinterview.com/question_details/22848/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/22718http://www.geekinterview.com/question_details/22718http://www.geekinterview.com/question_details/22718http://www.geekinterview.com/question_details/22718/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/22706http://www.geekinterview.com/question_details/22706http://www.geekinterview.com/question_details/22706http://www.geekinterview.com/question_details/22706/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/22662http://www.geekinterview.com/question_details/22662http://www.geekinterview.com/question_details/22662http://www.geekinterview.com/question_details/22662/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/22607http://www.geekinterview.com/question_details/22607http://www.geekinterview.com/question_details/22607/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/225117/30/2019 Servlet Interview
21/36
Latest Answer: the ResultSet is closed as soon as the Statement itself is closed, or used toretrieve another ResultSet. Therefore, the pointer that once provided a handle tothe query results is no longer valid, and this is where CachedRowSet comes in. Unlike aResultSet, ...Read Answers (2) | Asked by : divya_a
Answer Question
What is default capacity of connection pool objects in pool of app-server Weblogicand Tomcat webserver?Read Answers (4) | Asked by : srikanth.sunjava
Answer Question
In normal javabean, bean object is serailizable,and Connectuin object is transient object.ThenHow we using javabean for communnication between Servlet and JSP for data Transfer?Read Answers (1) | Asked by : srikanth.sunjava
Answer Question
Latest Answer: The example code may help you out.Vector v =getDataVector();//getDataVector() may be some method where you will put all your objectsinto vector.int size = v.size();for(int i = 0 ; iRead Answers (1) | Asked by : Eswar Rao
Answer Question
Consider a scenario where 2 instances of an appserver are running in a machine. And oneapplication has been deployed in the two servers. Does these two applications deployed in twoservers use the same JVM or different?Read Answers (3) | Asked by : Sohamsri
Answer Question
Consider a scenario in which 4 users are accessing a servlet instance. Among which one usercalled destroy() method. What happens to the rest 3 users?Read Answers (4) | Asked by : Sohamsri
Answer Question
Latest Answer: If u ActionMapping.findForward("Failure") in Action Class. The webcontainer readsthe information in sruts-config.xml and get the error page file.In struts-config.xml ...
http://www.geekinterview.com/question_details/22511http://www.geekinterview.com/user-profile/18682http://www.geekinterview.com/user-profile/18682http://www.geekinterview.com/question_details/22511/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/21022http://www.geekinterview.com/user-profile/3307http://www.geekinterview.com/user-profile/3307http://www.geekinterview.com/question_details/21022/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/21021http://www.geekinterview.com/user-profile/3307http://www.geekinterview.com/user-profile/3307http://www.geekinterview.com/question_details/21021/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/20879http://www.geekinterview.com/question_details/20879/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/18536http://www.geekinterview.com/question_details/18536/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/18535http://www.geekinterview.com/question_details/18535/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/22511http://www.geekinterview.com/user-profile/18682http://www.geekinterview.com/question_details/22511/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/21022http://www.geekinterview.com/question_details/21022http://www.geekinterview.com/question_details/21022http://www.geekinterview.com/user-profile/3307http://www.geekinterview.com/question_details/21022/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/21021http://www.geekinterview.com/question_details/21021http://www.geekinterview.com/question_details/21021http://www.geekinterview.com/user-profile/3307http://www.geekinterview.com/question_details/21021/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/20879http://www.geekinterview.com/question_details/20879http://www.geekinterview.com/question_details/20879http://www.geekinterview.com/question_details/20879/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/18536http://www.geekinterview.com/question_details/18536http://www.geekinterview.com/question_details/18536http://www.geekinterview.com/question_details/18536/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/18535http://www.geekinterview.com/question_details/18535http://www.geekinterview.com/question_details/18535http://www.geekinterview.com/question_details/18535/replyhttp://www.geekinterview.com/login.html?ref=http://www.geekinterview.com/http://www.geekinterview.com/question_details/185347/30/2019 Servlet Interview
22/36
Read Answers (1) | Asked by : Sohamsri
Answer Question
Latest Answer: Disadvantage of SSI There is one down side of Server-Side Includes. They are very
processor intensive. If you don't have a high-powered computer running your web server andyou expect to have a lot of traffic, you might want to limit the nu