Get fully solved assignment. Buy online from website
online store
or
plz drop a mail with your sub code
we will revert you within 2-3 hour or immediate
Charges rs
125/subject
if urgent then
call us on 08791490301, 08273413412
PROGRAMs
BSc
IT
SEMESTER
FOURTH
SUBJECT
CODE & NAME
BT0083,
Server Side Programming-Theory
Qus:1
Describe java servlets and compare it with CGI.
Answer:
Java
servlets and compare it with CGI:
Definition: “It is a
Web component managed by a Web container, which generates dynamic content in
Web pages.” A Servlet is a Java application that runs in a Web server or an
application server and provides server-side processing such as accessing a
database. Servlets are protocol and platform independent server side
components, written in Java, which dynamically extend Java-enabled Web Servers.
A Servlet, in simple terms, is a Java program running under a Web server taking
a
Qus: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:
HTML forms are used to
create good GUI for user interaction. Here you can create Textbox, checkboxes,
radio
Q3.
Write a note on tracking the sessions using cookies. Give advantages and
disadvantages of cookies.
ANS:
There are various techniques of
session tracking, they are as follows:
1. Using Cookies
2. Using URL-Rewriting
3. Using Hidden Form Fields
Using Cookies
Definition: Cookies are pieces of data that
web server adds in the client browser and later in the web server for
Qus:4
Explain the two JSP architectures.
Answer:
The
two JSP architectures:
There are two
general approaches you can take when developing Web applications using JSP.
I. Page-centric
(Model 1) and
II. Servlet-
Qus:5What
is the function and advantages of jsp: plugin element? State The difference
between JSP: include and include directive.
Answer:The
main advantage of JSP over Servlets is that JSP separates the presentation code
from the Java Code. Generating HTML in Servlet using out.println () is
time-consuming. Due to integration of
Qus:6What
is the need for MVC(Model View Controller) ?
Answer:Servlets
are great when your application requires a lot of real programming to
accomplish its task. Servlets can manipulate HTTP status codes andheaders, use
cookies, track sessions,
Get fully solved assignment. Buy online from website
online store
or
plz drop a mail with your sub code
we will revert you within 2-3 hour or immediate
Charges rs
125/subject
if urgent then
call us on 08791490301, 08273413412
No comments:
Post a Comment