Posts

Showing posts from 2019

Creating a Web Application

Image
Generally, a web application starts with a login portal or registration portal, otherwise we could use simple html pages for rest things out there. Our first web application will be starting with a login portal, interacting with database through a servlet with validation and login error handling . Requirements : An IDE (most preferably Eclipse J2EE)   Server (Apache Tomcat) // link to download is given in previous blog post. Database (most preferably MySql 5.5) Follow the steps below and code to create a login page : 1. Open Eclipse Enterprise edition. File -> New -> Dynamic Web Project . 2. Enter project name and choose a new runtime which is the server itself. 3. Select server name and specify it’s directory in the system. 4. click next, and put build/classes as the output folder (by default it’s same written here) and then next, check the web.xml for deployment description purpose. 5. Click on Fin...

Starting with Servlet

Talking about the Servlets, it all starts with  Dynamic Web . In traditional programming, applets were used to access a database and get dynamic data,but they were too slow and inefficient. So we use dynamic web which in terms introduces Common Gateway Interface (CGI) programs  and client-side scripting to deal with that problem. CGI  programs reside on the server and they accept requests, use the server-side resources, and generate an HTML page as a response. They can be written in a variety of language, such as Java,C++,Perl and Visual Basic. Examples of CGI programs are JSPs, Servlets, ASPs etc. Client-side scripting  uses scripting language at client side for small business applications,such as form validation. Here we'll elaborate Dynamic Web applications using servlets on  J2EE  platform. J2EE specifications were written by Sun Microsystems. It is made up of 13 technologies :  1.     Java ...