JSP study materials

Sessions are used in JSP to retain a user with his credentials . If you are programming the site, it is very helpful to be able to associate some data with each visitor.  For this purpose, A session is an object associated with a visitor.  Data can be put in the session and retrieved from it, […]

What is there in a JSP tag ? This article gives you an overview of JSP tags. Another important syntax element of JSP are tags.  JSP tags do not use <%, but just the < character.  A JSP tag is somewhat like an HTML tag.  JSP tags can have a “start tag”, a “tag body” and […]

Let’s explore JSP declarations here.The JSP you write turns into a class definition.  All the scriptlets you write are placed inside a single method of this class. You can also add variable and method declarations to this class.  You can then use these variables and methods from your scriptlets and expressions. To add a declaration, […]

Let’s explore JSP Directives here.We have been fully qualifying the java.util.Date in the examples in the previous sections.  Perhaps you wondered why we don’t just import java.util.*; It is possible to use “import” statements in JSPs, but the syntax is a little different from normal Java.  Try the following example: <%@ page import="java.util.*" %> <HTML> […]

In this section we look towards working with scriptlets and HTML to explore the potential of JSP.We have already seen how to use the “out” variable to generate HTML output from within a scriptlet.  For more complicated HTML, using the out variable all the time loses some of the advantages of JSP programming. It is […]