Dear students get fully solved SMU MBA assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
Web & Social Media Analytics Previous Year Question Paper.pdf
Bt0083 server side programming-theory
1. fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
(Prefer mailing. Call in emergency )
[WINTER 2015 ] ASSIGNMENT
PROGRAM BSc IT
SEMESTER FOURTH
SUBJECT CODE & NAME BT0083,Server Side Programming-Theory
CREDIT 4
BK ID B1088
MAX.MARKS 60
Answerall the questions
Question. 1. Explain java servlets and compare it with CGI.
Answer:A Java servletis a Java programming language program that extends the capabilities of a server.
Although servlets can respond to any types of requests, they most commonly implement applications
hosted on Web servers. Such Web servlets are the Java counterpart to other dynamic Web content
technologiessuchasPHP andASP.NET.
Difference betweenSERVLETand CGI
Both JavaservletsandCGI are usedfor
Question. 2. What are the ways of handling exception? Explain any
one in details.
Answer:Exception handling is the process of responding to the occurrence, during computation, of
exceptions – anomalous or exceptional conditions requiring special processing – often changing the
normal flow of program execution. It is provided by specialized programming language constructs or
computerhardware mechanisms.
In general, an exception is handled (resolved) by saving the current state of execution in a predefined
place and switching the execution to a specific subroutine known as an exception handler. If exceptions
2. are continuable, the handler may later resume the execution at the original location using the saved
information.Forexample,afloatingpoint
Question. 3. Write a note on tracking the sessions using cookies. List
the advantages and disadvantages of cookies
Answer:A cookie is a small piece of text file stored on user's computer in the form of name-value pair.
Cookies are used by websites to keep track of visitors e.g. to keep user information like username etc. If
any web application using cookies, Server send cookies and client browser will store it. The browser then
returns the cookie to the server at the next time the page is requested. The most common example of
using a cookie is to store User information, User preferences, Password Remember Option etc.It is also
one of the commonand mostlyaskedinterview
Question. 4. Explain the two JSP architectures.
Answer:The JSP specification presents two approaches for building web applications using JSP pages: JSP
Model 1 and Model 2 architectures. These two models differ in the location where the processing takes
place. In Model 1 architecture, the JSP page is responsible for processing requests and sending back
repliestoclients.
The Model 2 architecture, integrates the use of both servlets and JSP pages. In this mode, JSP pages are
used for the presentation layer, and servlets for processing tasks. The servlet acts as a controller
responsible forprocessingrequestsand
Question. 5. Draw and explain the diagram of custom tag life cycle.
Answer:The life cycle of a JavaServer Faces page is somewhat similar to that of a JSP page: The client
makes an HTTP request for the page, and the server responds with the page translated to HTML.
However, the JavaServer Faces life cycle differs from the JSP life cycle in that it is split up into multiple
phases in order to support the sophisticated UI component model. This model requires that component
data be converted and validated, component events be handled, and component data be propagated to
beansinan orderlyfashion.
3. Question. 6. Describe the process of deactivating individual
expression language statements with example.
Answer:Deactivatingthe ExpressionLanguage in an Entire WebApplication:-
The JSP 2.0 expression language is automatically in web applications whose deployed descriptor refers
to servletspecificationversion2.3or earlier.
On the otherhand,the following web.xmlfile is
fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
(Prefer mailing. Call in emergency )