New Servlets Interview Questions :: ALLInterview.com http://www.allinterview.com New Servlets Interview Questions en-us i need connection pooling code.....from harpreet.your@gmail.com http://www.allinterview.com/showanswers/75708.html Is there any differance b/w getting servlet context from servlet con http://www.allinterview.com/showanswers/75469.html servlet context:servletcontext is only one web web application object servlet config: servlet config is multiple object in webapplication what is the difference between do get/dopost http://www.allinterview.com/showanswers/74618.html doGet is called in response to an HTTP GET request. This happens when users click on a link, or enter a URL into the browser's address bar. It also happens with some HTML FORMs (those with METHOD="GET" specified in the FORM tag). difference between forward and sendredirect http://www.allinterview.com/showanswers/74134.html FORWARD--> 1. THE REQUEST AND RESPONSE OBJECT REMAIN SAME. 2. CONTROL DIRECTLY GOES TO REQUESTED PAGE AT THE POINT WHERE FORWARD IS CALLED. 3. REQUEST DISPATCHER IS NEEDED. SEND REDIRECT:---> 1.NEW REQUEST AND RESPONSE IS GENERATED IN can it possible to validate form field before execution of a servlet http://www.allinterview.com/showanswers/73880.html yes, it is possible. write a javascript method to validate input fields and call this method based on event of your requirement. can anybody send me j2ee softwares such as tomcat,weblogic server ,n http://www.allinterview.com/showanswers/73426.html can we override service method in my servlet class..?? if yes or no http://www.allinterview.com/showanswers/73104.html yes, we can override service() in our servlet, but not preferable. if we want use these service from any protocol like ftp,telnet, then we have to override. Can we write a constructor for a Servlet class ? if yes how ? if no w http://www.allinterview.com/showanswers/72527.html you can write as like for regular class. If we disable cookies in our web page, what will happen? http://www.allinterview.com/showanswers/70481.html Cookies is used for identify to request. if we disable the coookies then we cannot identify the request please give url to get orinal software for I-net crystal clear java r http://www.allinterview.com/showanswers/69343.html What is a parser. What does a parser do with a XML? Why do we need i http://www.allinterview.com/showanswers/69317.html Parser is used to parser the xml file it parse the xml file and set the data in the domain model and if the Schema validation is set to true then it will validate the xml file against the Schema .Parser is needed for reading the data from the xml can v create a constructor 4 servlet? http://www.allinterview.com/showanswers/69056.html yes we can create constructor of servlet instead of init method but i dont get servlet specification answers. What is the use of RequestDispatcher in servlet? http://www.allinterview.com/showanswers/68876.html RequestDispatcher is used to connect to another webresource with in the same context. RequestDispatcher rd=ServletContext.getRequestDispatcher("url of resource"); rd.forward(req,res);----used to forward to another resource. rd.includ java.lang.IllegalArgumentException: The path of an ForwardConfig can http://www.allinterview.com/showanswers/68616.html How many ways to remove the session object in the container http://www.allinterview.com/showanswers/68285.html If you are using HTTP Session then you can use session.remove(). But if you are using some other ways for session management let’s say cookies then you have to then you can setMaxAge to zero for the cookie.