Series: JSP

JSP made easy with concepts explained in simple terms, example codes with screenshots

What are the prerequisites to learn JSP?

JSP prerequisites to learn JSP Knowledge of HTML (especially forms) is essential. Core Java concepts of java.lang and java.util classes (not required networking, multithreading, inner classes and AWT etc.) are essential. Requires practice of Java OOPs programming. A little bit of Servlet knowledge is preferred but not compulsion because sometimes, I compare JSP with Servlets …

What are the prerequisites to learn JSP? Read More »

JSP in Tomcat Execution 6 Steps

Install Tomcat server of your choice version by downloading from Apache site. Many versions of Tomcat can be found in the following link. http://tomcat.apache.org/download-60.cgi Check with the documentation of what JDK or JRE version is compatible to the specific Tomcat version. For example I have loaded Tomcat 5.0 and is compatible with JDK 6.0. While …

JSP in Tomcat Execution 6 Steps Read More »

JSP User Name Password Login Example

In this first example, client sends user name and password to JSP on the Server. Server receives, validates and sends back the validation result to client as response. JSP User Name Password Login Example Following is the client-side HTML file calling Validation.jsp File Name: UserPass.html Enter User Name Enter Password <form method="get" action="http://localhost:8888/india/Validation.jsp"> In the …

JSP User Name Password Login Example Read More »

Read Client Form Data JSP 3 Ways Example

request is an object of HttpServletRequest and is one of the 9 implicit objects, JSP supports. request object is used to retrieve client’s system (like IP address) information, client’s browser (header) information and the data entered by the client in the <form> fields. To retrieve what the client entered in the <form> fields, request object …

Read Client Form Data JSP 3 Ways Example Read More »

Scriptlet Expression Declaration JSP Example

Scriptlet, Expression and Declaration are the three building blocks of JSP code. Let us see the appropriate places when to use them and finally we will do one example where all the three are used. Note: It is advised to go through the separate examples on Scriptlets, expressions and declarations before going through this. Here, …

Scriptlet Expression Declaration JSP Example Read More »