How To Exam?

a knowledge trading engine...


Manipal University 2009 B.E Computer Science and Engineering University: ; : ; Title of the : Java Enterprise Edition ( ) - Question Paper

Saturday, 26 January 2013 02:05Web


MANIPAL INSTITUTE OF TECHNOLOGY
(Constituent Institute of Manipal University)
MANIPAL 576104

7th SEMESTER exam
Nov - 2009
SUBJECT : JAVA ENTERPRISE EDITION [JEE-CSE 403.6]
(REVISED CREDIT SYSTEM)

TIME : three HOURS MAX.MARKS : 50


Summary: This is a regular term ques. paper of year 2009 of J2EE subject and it will help the students expertise on the subject and will add to their knowledge.


SEVENTH SEMESTER EXAMINATION Nov - 2009

SUBJECT : JAVA ENTERPRISE EDITION [JEE-CSE 403.6] (REVISED CREDIT SYSTEM)

TIME : 3 HOURS    MAX.MARKS : 50

Note: 1. Answer any five full questions .

1 a) With a neat diagram explain the architecture of JEE?    3

b)    Explain the directory structure of a WEB application?    2

c)    What is the difference between a web server and an application server?    2

d)    Given the following HTML form, what will be the result upon pressing submit button? (Mention if the result is error or not, if no error -method used and parameters passed)?

3

<form action="/servlet/Register">

<input type="text" name="fullName" value="Type name here" />

<input type="submit" name="sbmButton" value="OK" />

</form>

2 a) What is a JSP? Explain the life cycle of JSP?    1+2=3

b) What is the result of attempting to access the following JSP page?    2

<%@ page language="java" %>

<html>

<head><title>Question 2 b</title></head>

<body>

<h1>Question 2 b</h1>

<%!public void _jspService(HttpServletRequest request, HttpServletResponse response) { out.write("A");

} %>

<% out.write("B"); %>

</body>

</html>

c )Group the following JSP directives in to valid or invalid ?Justify the same. 5

i    <%@page isELignored = false %>

ii    <%@ page session=the/ is okay true %>

iii    <%@ page contentType=image/music/text %>

iv    <%@include uri=header.jsp %>

v    <%@ taglib prefi x=mytags uri=http://www.sun.com /taglibs/mytags %>

3 a ) What are the advantage of servlets over other common server extension mechanism ?

3

b)    Given the following deployment descriptor (dd)and servlet ,What is the result of loading the web-app with the dd and attempting to execute the servlet? 2 marks <web-app>

<context-param>

<paramname>author</paramname>

<paramvalue>Elmore Leonard</paramvalue>

</context-param>

</web-app>

public class ContextInitParms extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

response.setContentType("text/html");

PrintWriter out = response.getWriter(); out.write(" <HTML><HEAD></HEAD><BODY>");

ServletContext sc = getServletContext();

out.write(sc.getInitParameter("auther"));

out.close();

}

}

c)    State whether the following statement is true or false with proper justification- Attempt of execution of the above servlet code (refer 3 .b) will result in throwing exceptions. 2

d) What are the different types of the jdbc drivers ?    3

4    a ) Explain MVC architecture relating to J2EE?    3 b ) Explain the basic and form based authentication?    3

c ) What is struts ?How struts works ?What is the role of configuration file in struts ?

1+2+1=4

5    a) What are the different types of enterprise Beans ?    3

b) What are the transactional attributes that EJB supports?    2

c) What is the difference between java bean and EJB? What is new in EJB 3.0 ?

3+ 2 =5

6 a) Explain the architecture of hibernate with the help of neat diagram ? 4+1 =5

b) What is persistence ?Explain the usage of persistence in object oriented applications ?

1 +4 =5







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Manipal University 2009 B.E Computer Science and Engineering University: ; : ; Title of the : Java Enterprise Edition ( ) - Question Paper