Gujarat Technological University
Gujarat Technological University
___________
Q.3 (a) Discuss the use of execute(), executeUpdate() and executeQuery() methods. 03
(b) Differentiate ServletConfig and ServletContext objects. 04
(c) Write a servlet code which reads the student details from web page and stores 07
it in database.
OR
Q.3 (a) What is Filter? List the applications of filter. 03
(b) Discuss Servlet life cycle methods. Explain role of web container. 04
(c) What is Request Dispatcher? What is the difference between 07
RequestDispatcher’s forward() and include() method? Explain it in detail
with program.
Q.4 (a) What is difference between include directive and jsp:include action tag? 03
(b) Explain any four JSTL core tags. 04
(c) Explain the JSF request processing life cycle. 07
OR
Q.4 (a) What is the JSF facelets? Explain any two facelets tags. 03
(b) List the JSF standard converter tags and explain any three in detail. 04
(c) Write a JSP application for login module with reset password feature using 07
database connectivity.
1/2
OR
*************
2/2
Seat No.: ________ Enrolment No.___________
Q.1 (a) 1) How do you get the IP address of a machine from its hostname? 03
2) List out the important methods of HttpServletResponse.
3) What are the attributes for the JSP page directive?
(b) 1) What is the function of a SessionFactory object? How will you obtain 04
such an object?
2) How can you apply JSF Input Validation using input validators?
(c) What do you mean by session tracking? What are the session tracking 07
techniques? Demonstrate any of them.
Q.2 (a) What are the differences between a TCP socket and UDP socket? How are 03
they created in Java?
(b) Differentiate ServletConfig and ServletContext. 04
(c) What is connection URL? How do you make a database connection? Explain 07
various ways to make the database connection using JDBC code snippets.
OR
(c) What is JDBC driver? Explain its role and compare various JDBC drivers. 07
Q.3 (a) What is the use of PreparedStatement? How will you use it? 03
(b) What is filter? How will you configure filter using deployment descriptor? 04
(c) What are the directive tags of JSP? Write a JSP page to demonstrate the use 07
of them.
OR
Q.3 (a) What is the use of CallableStatement? How will you use it? 03
(b) What is FilterConfig? How will you use it? 04
(c) What are the implicit objects of JSP? Write a JSP page to demonstrate the use 07
them.
Q.4 (a) What is EL? Write a code snippet to show the use of method expressions in 03
JSF page.
(b) How will you use <h:commandButton> and <h:dataTable>? 04
(c) Develop a web application as following to demonstrate the use of 07
<jsp:useBean>.
Create a Java Bean named Employee with attributes name and age.
Create a web page to set the properties of Employee using
<jsp:useBean>.
Create a web page to display the properties of Employee using
<jsp:useBean>.
OR
Q.4 (a) What is JSTL? Write a code snippet to show the use of flow control tags. 03
(b) Write a code snippet to show the use of JSF action event. 04
1
(c) Develop a web application as following to demonstrate the use of JSTL SQL 07
tag library.
Create a web page to store the registration detail (Name, email and
contact number) of user in the database.
Create a web page for user to update registration detail in the database.
Create a web page to display the list of all registered users.
Q.5 (a) What is Spring AOP? What are Join points and Point cuts? 03
(b) What is dependency Injection? What is the role IoC container in Spring? 04
(c) What are the different Hibernate interfaces? Explain their role in brief. 07
OR
Q.5 (a) What is Hibernate? What are the features of it? 03
(b) What is OR mapping? How will you configure hibernate mapping file to map 04
a table and its columns from a given database?
(c) What are the advantages of Spring MVC? Explain the flow of Spring Web 07
MVC.
*************
2
Seat No.: ________ Enrolment No.___________
Q.2 (a) What is HTTP? Explain any two HTTP request methods in detail. 03
(b) Explain scripting elements of JSP. 04
(c) Write a program in which client sends string from its standard input to the server. 07
The server reads the string, finds number of words, characters and digits of received
string and sends result back to client. Use connection-oriented communication.
OR
(c) Write a JDBC Program for Employee Management application in which Consider 07
Employee table with attributes Emp_ID, EmpName, Phone and Address, and
perform followings:
i) Insert multiple records using prepared statement.
ii) Display all the records in reverse order.
Q.4 (a) What is difference between JSTL tag <c:import> and <jsp:include> action tag? 03
(b) Explain any four JSTL function tags with example. 04
(c) Explain the JSF request processing life cycle. 07
OR
Q.4 (a) What is faces-config.xml? Explain it with code. 03
(b) List the JSF standard validator tags and explain any three in detail. 04
(c) Write a JSP application for student registration application using database 07
connectivity.
1 of 2
Q.5 (a) List the Hibernate annotations and explain any two Hibernate annotations in 03
detail.
(b) What is ORM? Explain object/relational mappings in hibernate. 04
(c) Explain the architecture of Spring web MVC. 07
OR
Q.5 (a) Compare Hibernate and JDBC. 03
(b) Explain Spring bean life cycle. 04
(c) Explain Hibernate Architecture. 07
*************
2 of 2
Seat No.: ________ Enrolment No.___________
Q.4 (a) What is EL? Write a code snippet to show the use of method expressions in JSP page. 03
(b) Create a custom tag to print current date and time in JSP page. 04
(c) Discuss JSF request processing life cycle. 07
OR
Q.4 (a) Write a code snippet to show the use of JSF action event. 03
(b) Create a JSF custom convertor and use it in JSP page. 04
(c) Discuss the tags of JSTL SQL tag library. 07
1
Seat No.: ________ Enrolment No.___________
Q.1 (a) What do you mean by MVC architecture? Explain its role in modern 03
applications with its advantages.
(b) What is Servlet? Explain the life cycle methods of it. 04
(c) Explain the use of PreparedStatement with appropriate example. 07
Q.3 (a) What is a session? List out various session management techniques. 03
(b) Explain the purpose of RequestDispatcher using the methods forward () and 04
include ().
(c) What are cookies? Demonstrate the use of cookies in servlet. 07
OR
Q.3 (a) Which action tags are used to access the JavaBeans from a JSP page? 03
(b) What is Expression Language EL in JSP explain with suitable example 04
program?
(c) What is session? Demonstrate the use of Session in JSP. 07
Q.5 (a) What is hibernate? What are the benefits of using it? 03
(b) What is HQL? How does it different from SQL? List its advantages. 04
(c) Explain the Spring Web MVC framework controllers 07
OR
Q.5 (a) What are the different bean scopes in spring? 03
(b) What is Spring Bean? How can you create bean in Spring boot? 04
(c) What is OR mapping? Explain the components of hibernate.cfg.xml file. 07
*************
1