BSc IT sem 5 Enterprise Java Practical solution download




List of Practicals


1. Implement the following Simple Servlet applications. a. Create a simple calculator application using servlet. b. Create a servlet for a login page. If the username and password are correct then it says message “Hello ” else a message “login failed” c. Create a registration servlet in Java using JDBC. Accept the details such as Username, Password, Email, and Country from the user using HTML Form and store the registration details in the database.


2. Implement the following Servlet applications with Cookies and Sessions. a. Using Request Dispatcher Interface create a Servlet which will validate the password entered by the user, if the user has entered "Servlet" as password, then he will be forwarded to Welcome Servlet else the user will stay on the index.html page and an error message will be displayed. b. Create a servlet that uses Cookies to store the number of times a user has visited servlet. c. Create a servlet demonstrating the use of session creation and destruction. Also check whether the user has visited this page first time or has visited earlier also using sessions.


3. Implement the Servlet IO and File applications. a. Create a Servlet application to upload and Download a file. b. Develop Simple Servlet Question Answer Application using Database. c. Create simple Servlet application to demonstrate Non-Blocking Read Operation.


4. Implement the following JSP applications. a. Develop a simple JSP application to display values obtained from the use of intrinsic objects of various types. b. Develop a simple JSP application to pass values from one page to another with validations. (Name-txt, age-txt, hobbies-checkbox, email-txt, gender-radio button). c. Create a registration and login JSP application to register and authenticate the user based on username and password using JDBC.


5. Implement the following JSP JSTL and EL Applications. a. Create an html page with fields, eno, name, age, desg, salary. Now on submit this data to a JSP page which will update the employee table of database with matching eno. b. Create a JSP page to demonstrate the use of Expression language. c. Create a JSP application to demonstrate the use of JSTL.


6. Implement the following EJB Applications. a. Create a Currency Converter application using EJB. b. Develop a Simple Room Reservation System Application Using EJB. c. Develop simple shopping cart application using EJB [Stateful Session Bean].


7. Implement the following EJB applications with different types of Beans. a. Develop simple EJB application to demonstrate Servlet Hit count using Singleton Session Beans. b. Develop simple visitor Statistics application using Message Driven Bean [Stateless Session Bean]. c. Develop simple Marks Entry Application to demonstrate accessing Database using EJB.


8. Implement the following JPA applications. a. Develop a simple Inventory Application Using JPA. b. Develop a Guestbook Application Using JPA. c. Create simple JPA application to store and retrieve Book details.


9. Implement the following JPA applications with ORM and Hibernate. a. Develop a JPA Application to demonstrate use of ORM associations. b. Develop a Hibernate application to store Feedback of Website Visitor in MySQL Database. c. Develop a Hibernate application to store and retrieve employee details in MySQL Database.


10. Implement the following Hibernate applications. a. Develop an application to demonstrate Hibernate One- To -One Mapping Using Annotation. b. Develop Hibernate application to enter and retrieve course details with ORM Mapping. c. Develop a five page web application site using any two or three Java EE Technologies.