>> Wednesday, June 15, 2011
Q).What is the maximum amount of information is saved in Session Object?
A).There is no limit for amount of information that can be save into the session object.
It depends upon the RAM available on the server machine. The only limit is the Session ID length,
which should not exceed more than 4K. If the data to be store is very huge, then it's preferred to save it,
to a temporary file onto hard disk, rather than saving it in session.
Q).What is the web container?
A).The Web container provides the runtime environment through components that provide naming context and life cycle management,security and concurrency control. A web container provides the same services as a JSP container as well as a federated view of the Java EE.Apache Tomcat is a web container and an implementation of the Java Servlet and JavaServer Pages technologies.
Q.)Why should we go for inter Servlet Communication?
A).Due ot the following reason need inter servlet communication :
* Two servlet want to communicate to complete the shopping cart.
* One servlet handles the client request and forward it to another servlet to do some calculation or add some information to complete the view.
* One servlet want to reuse the some methods of another servlet.
Q).How HttpServlets Handle the Client Request?
A).HTTP Servlet is an abstract class that must be subclassed to create an HTTP servlet suitable for a Web site. A subclass of HttpServlet must override at least one method, usually one of these:
* doDelete(HttpServletRequest req, HttpServletResponse resp) : Called by the server (via the service method) to allow a servlet to handle a DELETE request.
* doGet(HttpServletRequest req, HttpServletResponse resp) : Called by the server (via the service method) to allow a servlet to handle a GET request.
* doOptions(HttpServletRequest req, HttpServletResponse resp) : Called by the server (via the service method) to allow a servlet to handle a OPTIONS request.
* doPost(HttpServletRequest req, HttpServletResponse resp) : Called by the server (via the service method) to allow a servlet to handle a POST request.
* doPut(HttpServletRequest req, HttpServletResponse resp) : Called by the server (via the service method) to allow a servlet to handle a PUT request.
* doTrace(HttpServletRequest req, HttpServletResponse resp) : Called by the server (via the service method) to allow a servlet to handle a TRACE request. etc.
A).There is no limit for amount of information that can be save into the session object.
It depends upon the RAM available on the server machine. The only limit is the Session ID length,
which should not exceed more than 4K. If the data to be store is very huge, then it's preferred to save it,
to a temporary file onto hard disk, rather than saving it in session.
Q).What is the web container?
A).The Web container provides the runtime environment through components that provide naming context and life cycle management,security and concurrency control. A web container provides the same services as a JSP container as well as a federated view of the Java EE.Apache Tomcat is a web container and an implementation of the Java Servlet and JavaServer Pages technologies.
Q.)Why should we go for inter Servlet Communication?
A).Due ot the following reason need inter servlet communication :
* Two servlet want to communicate to complete the shopping cart.
* One servlet handles the client request and forward it to another servlet to do some calculation or add some information to complete the view.
* One servlet want to reuse the some methods of another servlet.
Q).How HttpServlets Handle the Client Request?
A).HTTP Servlet is an abstract class that must be subclassed to create an HTTP servlet suitable for a Web site. A subclass of HttpServlet must override at least one method, usually one of these:
* doDelete(HttpServletRequest req, HttpServletResponse resp) : Called by the server (via the service method) to allow a servlet to handle a DELETE request.
* doGet(HttpServletRequest req, HttpServletResponse resp) : Called by the server (via the service method) to allow a servlet to handle a GET request.
* doOptions(HttpServletRequest req, HttpServletResponse resp) : Called by the server (via the service method) to allow a servlet to handle a OPTIONS request.
* doPost(HttpServletRequest req, HttpServletResponse resp) : Called by the server (via the service method) to allow a servlet to handle a POST request.
* doPut(HttpServletRequest req, HttpServletResponse resp) : Called by the server (via the service method) to allow a servlet to handle a PUT request.
* doTrace(HttpServletRequest req, HttpServletResponse resp) : Called by the server (via the service method) to allow a servlet to handle a TRACE request. etc.
0 comments:
Post a Comment