A Servlet That Generates HTML
Most servlets generate HTML, not plain text as in the previous example. To build HTML, you need two additional steps:
Read tutorialTHE TUTORIAL LIBRARY
Most servlets generate HTML, not plain text as in the previous example. To build HTML, you need two additional steps:
Read tutorialThe important syntax elements of JSP are tags. The JSP tags do not use
Read tutorialJSP 1.1 introduces a method of extending JSP tags, called "tag libraries". These libraries allow addition of tags similar to jsp:include or jsp:forward, but with different prefixes
Read tutorialIn this tutorial we will see about sessions in JSP. On a typical web site, a visitor might visit several pages and perform several interactions. If you are programming the site, it
Read tutorialSome sites require that all users log-in using a username and password, before being able to visit any page.
Read tutorialHere the program to display the date is given by executing this program we can get current date and time. Here the program shows you how to create a simple dynamic JSP page that pr
Read tutorialThe JSP you write turns into a class definition. All the scriptlets you write are placed inside a single method of this class. In JSP you can also add variables and can use the var
Read tutorialForms are a very common method of interactions in web sites. JSP makes forms processing especially easy.
Read tutorialIn the previous article we had explained about the java.util.Date in the examples in the previous articles. Perhaps you wondered why we don't just import java.util.*; It is possibl
Read tutorialWe have already seen how to use the "out" variable to generate HTML output from within a scriptlet in previous articles. For more complicated HTML, using the out variable all the t
Read tutorialIn this article we will learn about the various tags available in JSP with suitable examples. In JSP tags can be divided into 4 different types. These are:
Read tutorialWe can embed the java codes inside the jsp sciptlets. We can use the java variables like request, response, and session variable etc. by using the java variables we can create the
Read tutorialOne example today. A better developer tomorrow.