paxfreelance.blogg.se

Sample source code for java web application
Sample source code for java web application




HTTP Method - action to be performed, usually GET, POST, PUT etc.Some of the important parts of the HTTP Request are: HTTP runs on top of TCP/IP communication protocol. Web server and client needs a common communication protocol, HTTP ( Hyper Text Transfer Protocol) is the communication protocol between server and client. HTML is the common language between server and client and stands for Hyper Text Markup Language. Web Server and Web Client are two separate softwares, so there should be some common language for communication. When we request something from the server (through URL), the web client takes care of creating a request and sending it to the server and then parsing the server response and present it to the user. Some of the most widely used web clients are Firefox, Google Chrome, Safari, etc. A web client is a software that helps in communicating with the server. Web Server runs on some physical machine and listens to client request on a specific port. For example, Apache is one of the most widely used web servers. Web Server is a software that can process the client request and send the response back to the client. First Web Application with Servlet and JSP.The aim of this article is to provide basic details of different components in Web Application and how can we use Servlet and JSP to create our first java web application.

sample source code for java web application

We can create a website with static HTML pages but when we want information to be dynamic, we need web application. Java provides support for web application through Servlets and JSPs. Java Web Application is used to create dynamic websites.






Sample source code for java web application