This document provides information about fully solved assignments for the 4th semester BSc IT program. It includes 6 questions related to server side programming with answers. The questions cover topics like Java servlets, handling form data with servlet API, exception handling in servlets using web.xml, the two JSP architectures (Model 1 and 2), the custom tag lifecycle diagram, and usage of EL operators with examples. Students are instructed to send their semester and specialization details to a provided email or call a phone number to receive the solved assignments.
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
Bt0083, server side programming theory
1. Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
ASSIGNMENT
PROGRAM BSc IT
SEMESTER FOURTH
SUBJECT CODE & NAME BT0083,Server Side Programming-Theory
CREDIT 4
BK ID B1088
MAX.MARKS 60
Q. 1. Describe java servletsandcompare it with CGI.
Answer: A Java servlet is a Java programming language program thatextends 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
Q.2 Explain handling the form elements to retrieve the data from form using servlet API. Give some
examples.
Answer: - Handling the form elementstoretrieve the data from form using servletAPI:-
Request Parameters:- Each access to a servlet can have any number of request parameters associated
with it. These parameters are typically name/value pairs that tell the servlet any extra information it
needs to handle the request. Please don’t confuse these request parameters withinit parameters, which
are associatedwiththe servletitself.
2. Q.3 Describe the followingexceptionhandlingmethodsina servlet withthe helpof examples
1. Usingthe web.xml file
Answer: When a servlet throws an exception, the web container searches the configurations in web.xml
that use the exception-typeelementforamatch withthe thrownexceptiontype.
3. We wouldhave touse the error-page elementinweb.
Q.4 Explainthe 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
usedforthe presentationlayer,andservletsfor
5 Draw and explainthe 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 convertedandvalidated,componenteventsbe
6 Describe the usage of EL (Expression Language) operators withsuitable examples.
Answer: JSP Expression Language (EL) makes it possible to easily access application data stored in
JavaBeans components. JSP EL allows you to create expressions both (a) arithmetic and (b) logical.
Within a JSP EL expression, you can use integers, floating point numbers, strings, the built-in constants
true and false forbooleanvalues,andnull.
Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601