What is preinitialization of a servlet?
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... Read more »
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... Read more »
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, dispatch requests,... Read more »
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 parameters... Read more »
The directory structure of a web application consists of two parts. A private directory called WEB-INF A public resource directory which contains public resource... Read more »
The getRequestDispatcher(String path) method of javax.servlet.ServletRequest interface accepts parameter the path to the resource to be included or forwarded to,... Read more »
The javax.servlet.Servlet interface defines the three methods known as life-cycle method. public void init(ServletConfig config) throws ServletException public void... Read more »
The Iterator interface is used to step through the elements of a Collection . Read more »
1. Transaction_read_uncommitted- Allows a method to read uncommitted data from a DB(fast but not wise). 2. Transaction_read_committed- Guarantees that the data you... Read more »
Yes. In some cases the data is inserted NOT using Java application, so you may only need to retrieve the information, perform its processing, but not create your... Read more »
Session and Entity EJBs consist of 4 and 5 parts respetively: 1. A remote interface (a client interacts with it), 2. A home interface (used for creating objects... Read more »
The bean class defines create methods that match methods in the home interface and business methods that match methods in the remote interface. The bean class also... Read more »
Container-managed persistence beans are the simplest for the bean developer to create and the most difficult for the EJB server to support. This is because all the... Read more »
An entity bean consists of 4 groups of methods: 1. create methods: To create a new instance of a CMP entity bean, and therefore insert data into the database, the... Read more »
There is a little tool called JSPExecutor that allows you to do just that. Read more »
Variable declared inside declaration part is treated as a global variable.that means after convertion jsp file into servlet that variable will be in outside of service... Read more »