The online gas purchase store example below demonstrates how to use session in servlets.
This example accepts purchase details from user and adds them into the current purchases table.
The random redirector example below demonstrates how to redirect the servlet to other sites.
The example randomly redirects to other site, each time the servlet is invoked.
The cookie example below demonstrates how to use cookies with JSP and servlets.
The example allows the user to download songs from the respective album.
The time update example below demonstrates how to refresh the servlet using addHeader() method.
The example allows the user to view the current updated time as output.
The Hello User example below demonstrates how to pass parameters in JSP.
This example accepts a name from user and displays the output as "Hello user-name".