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
DRIVE FALL 2016
PROGRAM BSc IT
SEMESTER FOURTH
SUBJECT CODE & NAME BT0083 - Server Side Programming-Theory
BK ID B1088
CREDITS 4
MARKS 60
Note: Answer all questions. Kindly note that answers for 10 marks questions should be
approximately of 400 words. Each question is followed by evaluation scheme.
Question. 1. Describe java servlets and compare it with CGI.
Answer: A Java servletisaJava program that extendsthe capabilities of a server. Although servlets
can respondto anytypesof requests,theymostcommonlyimplement applications hosted on Web
servers. Such Web servlets are the Java counterpart to other dynamic Web content technologies
such as PHP and ASP.NET.
Question. 2. Explain handling the form elements to retrieve the
data from form using servlet API. Give some examples
Answer: HTML formsare usedtocreate good GUI for user interaction. Here we can create Textbox,
checkboxes,radiobuttons,combobox,andvariouskindsof GUIs on the forms. After creating forms
and GUI, the important step is to consider is the methods to retrieve inform of these forms in
servlet.
This data can be retrieved eith er by GET or POST method
Question. 3. Write a note on tracking the sessions using cookies.
Give advantages and disadvantages of cookies.
Answer: Session Tracking is a way to maintain state (data) of an user. It is also known as session
management in servlet.
Http protocol is a stateless so we need to maintain state using session tracking techniques. Each
time user requests to the server, server treats the
Question. 4. Explain the two JSP architectures.
Answer: The earlyJSPspecificationspresented two approaches for building web applications using
JSP technology. These two approaches were the JSP Model 1 and Model 2 architectures. Although
these terms are no longer used in the JSP specification, they still are widely used throughout the
web tier development community.
The two JSP architectures differ in several key areas. The major difference is in how and by which
component the processing of a request is handled.
Question. 5. What is the function and advantages of jsp: plugin
element? State
The difference between JSP: include and include directive.
Answer: JavaServer Pages (JSP) is a technology for developing web pages that support dynamic
content which helps developers insert java code in HTML pages by making use of special JSP tags,
most of which start with <% and end with %>.
JSP offer several advantages as listed below:
• Performance is significantly better because JSP allows embedding Dynamic Elements in
HTML Pages itself.
• JSPare alwayscompiledbefore it's processed by the server unlike CGI/Perl which requires
the server to load an interpreter and the target script each time the page is requested.
• JavaServerPagesare builtontopof the Java ServletsAPI,solike Servlets,JSPalsohas access
to all the powerful Enterprise Java APIs, including
Question. 6. What is the need for MVC(Model View Controller) ?
Answer: Model–view–controller(MVC) isasoftware designpatternforimplementinguserinterfaces
on computers. It divides a given software application into three interconnected parts, so as to
separate internal representationsof information from the ways that information is presented to or
accepted from the user. Traditionally used for desktop graphical user interfaces (GUIs), this
architecture hasbecome popularfordesigningwebapplicationsandevenmobile,desktopandother
clients.
As with other software architectures, MVC
Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601

Bt0083 server side programming-theory

  • 1.
    Dear students getfully solved assignments Send your semester & Specialization name to our mail id : help.mbaassignments@gmail.com or call us at : 08263069601 ASSIGNMENT DRIVE FALL 2016 PROGRAM BSc IT SEMESTER FOURTH SUBJECT CODE & NAME BT0083 - Server Side Programming-Theory BK ID B1088 CREDITS 4 MARKS 60 Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately of 400 words. Each question is followed by evaluation scheme. Question. 1. Describe java servlets and compare it with CGI. Answer: A Java servletisaJava program that extendsthe capabilities of a server. Although servlets can respondto anytypesof requests,theymostcommonlyimplement applications hosted on Web servers. Such Web servlets are the Java counterpart to other dynamic Web content technologies such as PHP and ASP.NET. Question. 2. Explain handling the form elements to retrieve the data from form using servlet API. Give some examples Answer: HTML formsare usedtocreate good GUI for user interaction. Here we can create Textbox, checkboxes,radiobuttons,combobox,andvariouskindsof GUIs on the forms. After creating forms and GUI, the important step is to consider is the methods to retrieve inform of these forms in servlet. This data can be retrieved eith er by GET or POST method Question. 3. Write a note on tracking the sessions using cookies. Give advantages and disadvantages of cookies.
  • 2.
    Answer: Session Trackingis a way to maintain state (data) of an user. It is also known as session management in servlet. Http protocol is a stateless so we need to maintain state using session tracking techniques. Each time user requests to the server, server treats the Question. 4. Explain the two JSP architectures. Answer: The earlyJSPspecificationspresented two approaches for building web applications using JSP technology. These two approaches were the JSP Model 1 and Model 2 architectures. Although these terms are no longer used in the JSP specification, they still are widely used throughout the web tier development community. The two JSP architectures differ in several key areas. The major difference is in how and by which component the processing of a request is handled. Question. 5. What is the function and advantages of jsp: plugin element? State The difference between JSP: include and include directive. Answer: JavaServer Pages (JSP) is a technology for developing web pages that support dynamic content which helps developers insert java code in HTML pages by making use of special JSP tags, most of which start with <% and end with %>. JSP offer several advantages as listed below: • Performance is significantly better because JSP allows embedding Dynamic Elements in HTML Pages itself. • JSPare alwayscompiledbefore it's processed by the server unlike CGI/Perl which requires the server to load an interpreter and the target script each time the page is requested. • JavaServerPagesare builtontopof the Java ServletsAPI,solike Servlets,JSPalsohas access to all the powerful Enterprise Java APIs, including Question. 6. What is the need for MVC(Model View Controller) ? Answer: Model–view–controller(MVC) isasoftware designpatternforimplementinguserinterfaces on computers. It divides a given software application into three interconnected parts, so as to
  • 3.
    separate internal representationsofinformation from the ways that information is presented to or accepted from the user. Traditionally used for desktop graphical user interfaces (GUIs), this architecture hasbecome popularfordesigningwebapplicationsandevenmobile,desktopandother clients. As with other software architectures, MVC Dear students get fully solved assignments Send your semester & Specialization name to our mail id : help.mbaassignments@gmail.com or call us at : 08263069601