Example Using Initialization Parameters
This program shows a servlet that reads the message and repeats initialization parameters when initialized. It shows the result when message is Shibboleth, repeats is 5, and the se
Read tutorialTHE TUTORIAL LIBRARY
This program shows a servlet that reads the message and repeats initialization parameters when initialized. It shows the result when message is Shibboleth, repeats is 5, and the se
Read tutorialThis below program shows a simple servlet that just generates plain text, with the output. A Servlet That Generates HTML shows the more usual case where HTML is generated. However,
Read tutorialMost 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 tutorialOne example today. A better developer tomorrow.