Professional Documents
Culture Documents
GANPATUNIVERSITY
Technology
B. Tech.Semester:V ComputerEngineering/Information
-
CBCSRegularExaminationNovember December2014
2CE505/2IT505:AdvancedJava
otalMarks:7o
n
Time:3lrours
Instruction: l. Attemptall questions.
2. Figuresto the right indicatefull marks.
3. Eachsectionshouldbewrittenin a separate answerbook.
.i
SECTION - I
ac
Que.l tAl archiiecture
Whatis I}EE? Explainenterprise and its types. 16l
tBl ExplainJDBCdrivertypeswith advantages anddisadvantages. t6l
OR
Que.l tAl Explainapplication process
deployment in detail. 16l
lBl Explainthe useof the PreparedStatement objectsof the
and Callablestatement 16l
Que.2 tAl
. applet.
et.
JDBCwith an appropriate
The dimensions
with a magentacolor.
example.
with anexample
a,
; I'rna $witrfibrfionl i Nulltl,er0l bltlt0nclicks:3
; : j
P a g eI o f 2
tS
*qds
SECTION_ II
include0 of
Que.4 tAI What is servlet collaboration?Explain forward0 and
with anappropriate
RequestDispatcher example.
n
beans.
ofenterprise
.i
and Editionin database. Write a programusingJSPandJDBC for searchbook
functionality.Design one page "indexjsp" containingtextbox (for entering
AuthorNarne) and a subnii button.When userclicks on button,he shouldbe
ac
'osearchjsp"
wheresearchresultfrom database(list of books)is
redirectedto
displayed.
IBI Describe Cookies and URL Rewriting techniqueswith advantagesand t6l
disadvantages. Createan HTML file "AddCookies'htlnl" which containsfour
text boxes.Whenuserentersthe valuesin thesetext boxes and pressthe submit
button,the valueswill be sentto "AddCookiesjava"servletand get savedin
cookies.
classwith Student
and
OR
selectCustomerdetailsusingJDBClike
address, emailfrom Custotner
and
theneedandcharacteristics
table'
of JavaBean.Design
lastname
detailslike firstname, andage' Set
a
the
tsl
l6l
'i
ibn
propcrliesof StudentBean using <jsp:setProperty> 1aU. Display the Strrdent
detailsin JSPpageusing <jsp:getProperty> tag.
check
calleclltemswhich containstwo nrcthodsequalQ(to
Que,6 IAI Createan intcrfaL:e t3l
whethertwo numbet's areequalor not) and display$(todisplaytwo nurnbers)'
Createa classClientthatirnplementsthe Iternsinterface.Clienthastwo instance
variublesa, b of typeintegerandconstructorto initializethem.Createan object
nfl
of Clientclassandtestthemethods.
tBl ExplainEJBarchitecture. t3l
tcl Whatis JSTL?Explainanytwo tagsof JSTLcoretaglibrary' t3l
tDl whereonecanusegetParameter$
Statethescenarios and
, getParameterNarnesQ t3l
getPameterValues0.
u.i
ENDOF PAPER
gn
Page2 of 2
l6