JSP Tutorials

Before we move ahead, let me clarify three essential terms: Internationalization (i18n): Means of internationalization enabling a website to give different versions of content translated into the guest’s language. Limitation (l10n): Means of limitation, adding resources to a site to adjust it to a specific topographical or social locale for instance Hindi interpretation to a […]

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 […]

Let’s see how scriptlet play a vital role in JSP pages.We have already seen how to embed Java expressions in JSP pages by putting them between the <%= and %> character sequences.But it is difficult to do much programming just by putting Java expressions inside HTML. JSP also allows you to write blocks of Java […]

Here we’ll see about dynamic contents and expressions in JSP.In the previous section we saw how any HTML file can be turned into a JSP file by changing its extension to .jsp.  Of course, what makes JSP useful is the ability to embed Java.  Put the following text in a file with .jsp extension (let […]

JSP combine markup (whether HTML or XML) with nuggets of Java code to produce a dynamic web page. Each page is automatically compiled to a servlet by the JSP engine, the first time it is requested, and then executed. JSP provides a variety of ways to talk to Java classes, servlets, applets and the web […]