Tuesday, 23 January 2018

Advance-Java



Slip1



Slip2
Q2. Write a SERVLET program which counts how many times a user has visited a web page. If user is visiting the page for the first time, display a welcome message. If the user is revisiting the page, display the number of times visited. (Use Cookie)                                                                                                                                                                                                             

Slip3

Slip4
                                                                                                                                               

Slip5


 
Slip6

                                                                                                                                               

Slip7


Slip8

Slip9



Starting Position of Text                                                                                                        


Slip10


Slip11



Slip12

Slip13

Slip14

Slip15

Q2. Write a SERVLETprogram in java to accept details of student (SeatNo, Stud_Name, Class, Total_Marks).Calculate percentage and grade obtained and display details on page.                                                                                                                                                                    
Slip16


Slip17



 

Slip18

Slip19


Slip20


Slip21


Slip22







Slip23


           

Slip24


Slip25


Slip26


Slip27


Slip28

Slip29


Slip30

Q2. Write a SERVLET program to display the details of Product (ProdCode, PName, Price) on the browser in tabular format. (Use database)