Category: J2EE

Pass data from html to servlet

In this tutorial we explain the common way of passing data from html to java servlets, we mostly focus on passing form data entered by end-users through pages like: login, sign-up, contact-us .. 1. Pass form fields to servlet Consider the following login.html:

Users interact with web applications through forms, the “form” element is the common way for asking end-users...

JSP – Hello World Tutorial

In this tutorial, we provide a step-by-step guide for creating a hello world web application using JSP technology. Prerequisites: Eclipse IDE (Mars release) Java 1.7 Apache tomcat 7 1. Create dynamic web project Open eclipse, then select File -> New -> Dynamic Web Project. In the next screen, fill the mandatory fields as above, you are free to choose any...

Servlet 3.0 – Hello World Tutorial

In this tutorial, we provide a step-by-step guide for creating a hello world web application using Servlet 3.0 technology. Servlet 3.0 supports defining and exposing servlets using annotations, if you still love to define servlets manually, refer to our previous tutorial about creating web applications using servlet 2.5. Prerequisites: Eclipse IDE (Mars release) Java 1.7 Apache tomcat 7 1. Create...

Servlet 2.5 – Hello World Tutorial

In this tutorial, we provide a step-by-step guide for creating a hello world web application using Servlet 2.x technology. Prerequisites: Eclipse IDE (Mars release) Java 1.7 Apache tomcat 7 1. Create dynamic web project Open eclipse, then select File -> New -> Dynamic Web Project. In the next screen, fill the mandatory fields as above, in case you didn’t previously...