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

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 servlet is a Java 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.



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

Answer: HTML forms are used to create good GUI for user interaction. Here we can create Textbox, checkboxes, radio buttons, combo box, and various kinds of 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 early JSP specifications presented 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.
         JSP are always compiled before 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.
         JavaServer Pages are built on top of the Java Servlets API, so like Servlets, JSP also has 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) is a software design pattern for implementing user interfaces on computers. It divides a given software application into three interconnected parts, so as to separate internal representations of information from the ways that information is presented to or accepted from the user. Traditionally used for desktop graphical user interfaces (GUIs), this architecture has become popular for designing web applications and even mobile, desktop and other 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


No comments:

Post a Comment

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