Tag Archives: jsp

User Registration with Email Confirmation : Part III.

The registration with email confirmation part III continues from part II.

To identify which servlet to call, we have to define the url mapping for each of the servlet. The RegisterServlet mapping is added in the web.xml file. Apart from this, servlet mapping for confirmation of user is also added in the same, we will see what actually ConfirmtionServlet consists of in later part.

User Registration with Email Confirmation : Part I.

Hello Friends,

This is one of the tutorials regarding Login Application. The example will guide you through the process of user registration with email confirmation on your site, the email confirmation is necessary now a days to authenticate and verify the user. The email contains the details of registration and a link to activate the account, unless which he/she cannot login. This tutorial uses the example which we already used in Login Example.

Including file in a JSP page.

Hello Friends,

This is one of the simple tutorials on jsp. Most of the time in any of the web application we need some part of the application on almost each of the pages. So, writing the code in each of the pages is really tedious and is not the best practice. For example, if we have a web application where we have to use the Header code and Footer code on every page then its the best practice to write the code once in a separate file and then import that file or its contents into the page where we want it to be displayed.

Login Example: JSP and Servlets: Part II.

Hello Friends,

The Login application tutorial continues here in part II. Check Part I here.

Step 4) Now, we need to create a Servlet file for the redirection of the jsp pages. In the src folder under the package come2niks, add the Servlet file and name it as LoginServlet. As discussed earlier this servlet file will get the user details from the Bean file and then it will create a Session for that user only if the user is a valid user. And accordingly it will redirect to the respective jsp pages. You can use the default code which Eclipse generates while Servlet creation, the only change you need to do is in doGet() method.

Login Example – JSP and Servlets: Part I.

Hello Friends,

This is one of the tutorials on JSP and Servlets. In this we will discuss and create a simple login application using servlets and JSP where we will connect to the DB for the user credentials and then authenticate the users accordingly. First of all we will discuss about what we will need for this.

JSP Pages:

We will create three JSP pages which will be the only viewable parts of our code. The three pages will be as Login Page, Login Success page and the Invalid Login page.

Introduction to Java Servlets.

Hello Friends,

This is my first tutorial on the Java Servlets. This will be helpful for all the newbie who wants to learn the advance java programming. This is the first and basic step to enter the java enterprise environment. In this tutorial we will be focusing on what actually are servlets, what are its advantages some simple things related to Servlets.