Servlet Java Interview Questions – Set 09

In the Servlet 2.4 specification SingleThreadModel has been deprecated, why Because it is not practical to have such model. Whether you set isThreadSafe to true or false, you should take care of concurrent client requests to the JSP page by synchronizing access to any shared objects defined at the page level. Can you give some … Read more

Servlet Java Interview Questions – Set 08

What is JSP tag file A source file containing a reusable fragment of JSP code that is translated into a tag handler when a JSP page is translated into a servlet. What is JSP container A container that provides the same services as a servlet container and an engine that interprets and processes JSP pages … Read more

Servlet Java Interview Questions – Set 07

When init() and Distroy() will be called init() is called whenever the servlet is loaded for the first time into the webserver.it performs certain one time activities which are required during the lifetime of the servlet.It may be some initialisation of variables or a database connection. Destroy will be called whenever the servlet is removed … Read more

Servlet Java Interview Questions – Set 06

Difference between JSP include directive and JSP include action <%@ include file=”filename” %> is the JSP include directive.At JSP page translation time, the content of the file given in the include directive is ‘pasted’ as it is, in the place where the JSP include directive is used. Then the source JSP page is converted into … Read more

Servlet Java Interview Questions – Set 05

Explain about ServletConfig Interface ServletConfig a ServletConfig object is used to obtain configuration data when it is loaded. There can be multiple ServletConfig objects in a single web application. This object defines how a servlet is to be configured is passed to a servlet in its init method. Most servlet containers provide a way to … Read more