What is the difference between doPost and doGet methods

?– a) doGet() method is used to get information, while doPost() method is used for posting information. b) doGet() requests can’t send large amount of information and is limited to 240-255 characters. However, doPost()requests passes all of its data, of unlimited length. c) A doGet() request is appended to the request URL in a query … Read more

What is the difference between an applet and a servlet?-

a) Servlets are to servers what applets are to browsers. b) Applets must have graphical user interfaces whereas servlets have no graphical user interfaces. In the context of Core Java, the main difference between an applet and a servlet lies in their intended use and where they run. Applet: An applet is a small Java … Read more

What are the classes and interfaces for servlets?-

There are two packages in servlets and they are javax. servlet and In Core Java, servlets are part of the Java Enterprise Edition (Java EE) platform and are used for developing web applications. The key classes and interfaces for servlets are part of the javax.servlet package. Here are some important classes and interfaces related to … Read more

What is servlet?-

Servlets are modules that extend request/response-oriented servers, such as java-enabled web servers. 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 company’s order database. In the context of Core Java, a servlet refers to a Java programming language class that … Read more

How to create and call stored procedures

To create stored procedures: Create procedure procedurename (specify in, out and in out parameters) BEGIN Any multiple SQL statement; END; To call stored procedures: CallableStatement csmt = con. prepareCall(”{call procedure name(?,?)}”); csmt. registerOutParameter(column no. , data type); csmt. setInt(column no. , column name) csmt. execute(); What is servlet?– Servlets are modules that extend request/response- In … Read more