JSP Sessions If you want to retain a user with his credentials you need to maintain session. If you are programming the site, it is very helpful to be able to associate some data with each visitor. For this purpose, …
Read more »
JSP Tags 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 …
Read more »
JSP Declarations 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 …
Read more »
JSP Directives 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 …
Read more »
Working with Scriptlets and 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. …
Read more »
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 …
Read more »
Dynamic contents and expressions 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 …
Read more »
First JSP Here you will try to get into the first steps of creating a JSP. JSP simply puts Java inside HTML pages. You can take any existing HTML page and change its extension to “.jsp” instead of “.html”. In …
Read more »
JSP server- Understand your JSP server
Read more »
What is JSP (Java Server Pages) 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 …
Read more »