Showing posts with label jntuh 2017. Show all posts
Showing posts with label jntuh 2017. Show all posts

Friday, 17 March 2017

LIST COOKIES IN JSP ALONG WITH CSS

A web application that lists all cookies stored in a browser 

Today we are going to learn how to style our JSP code for which same folder structure you have to follow like below:


Here the src code for the cookie is as follows:


The CSS style sheet is as follows:


The background image which we are going to use is :


When u start tomcat server and click on the specified project your output will be:






Thursday, 2 March 2017

jsp programs of wtlab

Following should be the directory structure that is always followed for implementing jsp applications.

In Tomcat web-apps folder you have to create your own respective folder for jsp implementation.

Sessions implementation using jsp:It requires following three files:
                                                             1.login.jsp
                                                              2.home.jsp
                                                              3.logout.jsp




The output of above program is






 Age validation implementation using jsp:



The output of above program is


Calculator implementation in jsp


The above programs output is as follows: