BT0083,Server Side Programming-Theory

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 servlets and compare it with CGI.

Answer: A Java servlet is 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 technologies such as PHP and ASP.NET.

Difference between SERVLET and CGI



Q.2 Explain handling the form elements to retrieve the data from form using servlet API. Give some examples.

Answer: - Handling the form elements to retrieve the data from form using servlet API:-

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 with init parameters, which are associated with the servlet itself.

 



Q.3 Describe the following exception handling methods in a servlet with the help of examples
1. Using the web.xml file
Answer: When a servlet throws an exception, the web container searches the configurations in web.xml that use the exception-type element for a match with the thrown exception type.

We would have to use the error-page element in web.



Q.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 replies to clients.
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


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




6 Describe the usage of EL (Expression Language) operators with suitable 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 for boolean values, and null.


Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.