SlideShare a Scribd company logo
1 of 3
fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
(Prefer mailing. Call in emergency )
[WINTER 2015 ] ASSIGNMENT
PROGRAM BSc IT
SEMESTER FOURTH
SUBJECT CODE & NAME BT0083,Server Side Programming-Theory
CREDIT 4
BK ID B1088
MAX.MARKS 60
Answerall the questions
Question. 1. Explain java servlets and compare it with CGI.
Answer:A Java servletis 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
technologiessuchasPHP andASP.NET.
Difference betweenSERVLETand CGI
Both JavaservletsandCGI are usedfor
Question. 2. What are the ways of handling exception? Explain any
one in details.
Answer:Exception handling is the process of responding to the occurrence, during computation, of
exceptions – anomalous or exceptional conditions requiring special processing – often changing the
normal flow of program execution. It is provided by specialized programming language constructs or
computerhardware mechanisms.
In general, an exception is handled (resolved) by saving the current state of execution in a predefined
place and switching the execution to a specific subroutine known as an exception handler. If exceptions
are continuable, the handler may later resume the execution at the original location using the saved
information.Forexample,afloatingpoint
Question. 3. Write a note on tracking the sessions using cookies. List
the advantages and disadvantages of cookies
Answer:A cookie is a small piece of text file stored on user's computer in the form of name-value pair.
Cookies are used by websites to keep track of visitors e.g. to keep user information like username etc. If
any web application using cookies, Server send cookies and client browser will store it. The browser then
returns the cookie to the server at the next time the page is requested. The most common example of
using a cookie is to store User information, User preferences, Password Remember Option etc.It is also
one of the commonand mostlyaskedinterview
Question. 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
repliestoclients.
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 processing tasks. The servlet acts as a controller
responsible forprocessingrequestsand
Question. 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 handled, and component data be propagated to
beansinan orderlyfashion.
Question. 6. Describe the process of deactivating individual
expression language statements with example.
Answer:Deactivatingthe ExpressionLanguage in an Entire WebApplication:-
The JSP 2.0 expression language is automatically in web applications whose deployed descriptor refers
to servletspecificationversion2.3or earlier.
On the otherhand,the following web.xmlfile is
fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
(Prefer mailing. Call in emergency )

More Related Content

What's hot (20)

Jsp
JspJsp
Jsp
 
Java j2eeTutorial
Java j2eeTutorialJava j2eeTutorial
Java j2eeTutorial
 
276626961 java-j2 ee-course-curriculum-modular
276626961 java-j2 ee-course-curriculum-modular276626961 java-j2 ee-course-curriculum-modular
276626961 java-j2 ee-course-curriculum-modular
 
INTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE AND JSP PROCESSING
INTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE  AND JSP PROCESSINGINTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE  AND JSP PROCESSING
INTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE AND JSP PROCESSING
 
Phulkala_Narvekar_JavaDeveloper
Phulkala_Narvekar_JavaDeveloperPhulkala_Narvekar_JavaDeveloper
Phulkala_Narvekar_JavaDeveloper
 
Jsp
JspJsp
Jsp
 
JSP Processing
JSP ProcessingJSP Processing
JSP Processing
 
Jsp
JspJsp
Jsp
 
Bt0083 server side programming-theory
Bt0083   server side programming-theoryBt0083   server side programming-theory
Bt0083 server side programming-theory
 
Jms
JmsJms
Jms
 
Jms intro
Jms introJms intro
Jms intro
 
Jsp
JspJsp
Jsp
 
Java Server Pages
Java Server PagesJava Server Pages
Java Server Pages
 
Java Server Pages
Java Server PagesJava Server Pages
Java Server Pages
 
WEB TECHNOLOGIES JSP
WEB TECHNOLOGIES  JSPWEB TECHNOLOGIES  JSP
WEB TECHNOLOGIES JSP
 
Java Server Pages(jsp)
Java Server Pages(jsp)Java Server Pages(jsp)
Java Server Pages(jsp)
 
Dba
DbaDba
Dba
 
Mi0041 java and web design
Mi0041   java and web designMi0041   java and web design
Mi0041 java and web design
 
Software specialist
Software specialistSoftware specialist
Software specialist
 
Online grocery store
Online grocery storeOnline grocery store
Online grocery store
 

Viewers also liked

Bt0082 visual basic
Bt0082   visual basicBt0082   visual basic
Bt0082 visual basicsmumbahelp
 
Presentación
PresentaciónPresentación
Presentacióndavid0002
 
Comprensión y expresión oral
Comprensión y expresión oralComprensión y expresión oral
Comprensión y expresión oralEsther MP
 
ο τοποσ μασ
ο τοποσ μασο τοποσ μασ
ο τοποσ μασvasoaggell
 
โครงสร้างโปรแกรมภาษาซี
โครงสร้างโปรแกรมภาษาซีโครงสร้างโปรแกรมภาษาซี
โครงสร้างโปรแกรมภาษาซีdechathon
 
Treatment for varicose vein disease
Treatment for varicose vein diseaseTreatment for varicose vein disease
Treatment for varicose vein diseaseAdvanced Vein Care
 
Formulacion estrategica de problemas
Formulacion estrategica de problemasFormulacion estrategica de problemas
Formulacion estrategica de problemasMAJJITTOS
 
Estudio del valor que la sostenibilidad aporta a los eventos 2ª edición año...
Estudio del valor que la sostenibilidad aporta a los eventos   2ª edición año...Estudio del valor que la sostenibilidad aporta a los eventos   2ª edición año...
Estudio del valor que la sostenibilidad aporta a los eventos 2ª edición año...Juan Jose Amate Ruiz
 
Chapter 6 tqm high performance workforce management
Chapter 6 tqm high performance workforce managementChapter 6 tqm high performance workforce management
Chapter 6 tqm high performance workforce managementNIK ROZILAINI WAN MOHAMED
 
Cust. implementation certificate
Cust. implementation certificateCust. implementation certificate
Cust. implementation certificateMichael Parat
 

Viewers also liked (16)

Bt0082 visual basic
Bt0082   visual basicBt0082   visual basic
Bt0082 visual basic
 
Presentación
PresentaciónPresentación
Presentación
 
Comprensión y expresión oral
Comprensión y expresión oralComprensión y expresión oral
Comprensión y expresión oral
 
ο τοποσ μασ
ο τοποσ μασο τοποσ μασ
ο τοποσ μασ
 
Bizzarre
BizzarreBizzarre
Bizzarre
 
โครงสร้างโปรแกรมภาษาซี
โครงสร้างโปรแกรมภาษาซีโครงสร้างโปรแกรมภาษาซี
โครงสร้างโปรแกรมภาษาซี
 
Direct dia logro
Direct dia logroDirect dia logro
Direct dia logro
 
Media Culture and Holiness
Media Culture and HolinessMedia Culture and Holiness
Media Culture and Holiness
 
Treatment for varicose vein disease
Treatment for varicose vein diseaseTreatment for varicose vein disease
Treatment for varicose vein disease
 
Formulacion estrategica de problemas
Formulacion estrategica de problemasFormulacion estrategica de problemas
Formulacion estrategica de problemas
 
Estudio del valor que la sostenibilidad aporta a los eventos 2ª edición año...
Estudio del valor que la sostenibilidad aporta a los eventos   2ª edición año...Estudio del valor que la sostenibilidad aporta a los eventos   2ª edición año...
Estudio del valor que la sostenibilidad aporta a los eventos 2ª edición año...
 
Substance vs. Success: Choose Your Path
Substance vs. Success: Choose Your PathSubstance vs. Success: Choose Your Path
Substance vs. Success: Choose Your Path
 
Chapter 6 tqm high performance workforce management
Chapter 6 tqm high performance workforce managementChapter 6 tqm high performance workforce management
Chapter 6 tqm high performance workforce management
 
MELondon
MELondonMELondon
MELondon
 
JLL Pittsburgh Office Insight - Q2 2015
JLL Pittsburgh Office Insight - Q2 2015JLL Pittsburgh Office Insight - Q2 2015
JLL Pittsburgh Office Insight - Q2 2015
 
Cust. implementation certificate
Cust. implementation certificateCust. implementation certificate
Cust. implementation certificate
 

Similar to Bt0083 server side programming-theory

Servlets and jsp pages best practices
Servlets and jsp pages best practicesServlets and jsp pages best practices
Servlets and jsp pages best practicesejjavies
 
Server side programming bt0083
Server side programming bt0083Server side programming bt0083
Server side programming bt0083Divyam Pateriya
 
Struts 2-overview2
Struts 2-overview2Struts 2-overview2
Struts 2-overview2divzi1913
 
Struts 2 Overview
Struts 2 OverviewStruts 2 Overview
Struts 2 Overviewskill-guru
 
Struts 2-overview2
Struts 2-overview2Struts 2-overview2
Struts 2-overview2Long Nguyen
 
Jsp and Servlets
Jsp and ServletsJsp and Servlets
Jsp and ServletsRaghu nath
 
Transformation of Java Server Pages: A Modern Approach
Transformation of Java Server Pages: A Modern ApproachTransformation of Java Server Pages: A Modern Approach
Transformation of Java Server Pages: A Modern ApproachIRJET Journal
 
Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01Prashanth Shivakumar
 
Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts frameworks4al_com
 
J2EE and layered architecture
J2EE and layered architectureJ2EE and layered architecture
J2EE and layered architectureSuman Behara
 
BITM3730Week12.pptx
BITM3730Week12.pptxBITM3730Week12.pptx
BITM3730Week12.pptxMattMarino13
 

Similar to Bt0083 server side programming-theory (20)

Servlets and jsp pages best practices
Servlets and jsp pages best practicesServlets and jsp pages best practices
Servlets and jsp pages best practices
 
Server side programming bt0083
Server side programming bt0083Server side programming bt0083
Server side programming bt0083
 
Struts 2-overview2
Struts 2-overview2Struts 2-overview2
Struts 2-overview2
 
Struts 2 Overview
Struts 2 OverviewStruts 2 Overview
Struts 2 Overview
 
Mvc15 (1)
Mvc15 (1)Mvc15 (1)
Mvc15 (1)
 
Struts 2-overview2
Struts 2-overview2Struts 2-overview2
Struts 2-overview2
 
Jsp and Servlets
Jsp and ServletsJsp and Servlets
Jsp and Servlets
 
Jsp
JspJsp
Jsp
 
Jsp
JspJsp
Jsp
 
10 jsp-scripting-elements
10 jsp-scripting-elements10 jsp-scripting-elements
10 jsp-scripting-elements
 
Transformation of Java Server Pages: A Modern Approach
Transformation of Java Server Pages: A Modern ApproachTransformation of Java Server Pages: A Modern Approach
Transformation of Java Server Pages: A Modern Approach
 
Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01
 
Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts framework
 
Jsp2 ch5
Jsp2 ch5Jsp2 ch5
Jsp2 ch5
 
J2EE and layered architecture
J2EE and layered architectureJ2EE and layered architecture
J2EE and layered architecture
 
TY.BSc.IT Java QB U4
TY.BSc.IT Java QB U4TY.BSc.IT Java QB U4
TY.BSc.IT Java QB U4
 
BITM3730Week12.pptx
BITM3730Week12.pptxBITM3730Week12.pptx
BITM3730Week12.pptx
 
Virtual Classroom
Virtual ClassroomVirtual Classroom
Virtual Classroom
 
Jsp basic
Jsp basicJsp basic
Jsp basic
 
Spatial approximate string search Doc
Spatial approximate string search DocSpatial approximate string search Doc
Spatial approximate string search Doc
 

Recently uploaded

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 

Recently uploaded (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 

Bt0083 server side programming-theory

  • 1. fully solved assignments Send your semester & Specialization name to our mail id : “ help.mbaassignments@gmail.com ” or Call us at : 08263069601 (Prefer mailing. Call in emergency ) [WINTER 2015 ] ASSIGNMENT PROGRAM BSc IT SEMESTER FOURTH SUBJECT CODE & NAME BT0083,Server Side Programming-Theory CREDIT 4 BK ID B1088 MAX.MARKS 60 Answerall the questions Question. 1. Explain java servlets and compare it with CGI. Answer:A Java servletis 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 technologiessuchasPHP andASP.NET. Difference betweenSERVLETand CGI Both JavaservletsandCGI are usedfor Question. 2. What are the ways of handling exception? Explain any one in details. Answer:Exception handling is the process of responding to the occurrence, during computation, of exceptions – anomalous or exceptional conditions requiring special processing – often changing the normal flow of program execution. It is provided by specialized programming language constructs or computerhardware mechanisms. In general, an exception is handled (resolved) by saving the current state of execution in a predefined place and switching the execution to a specific subroutine known as an exception handler. If exceptions
  • 2. are continuable, the handler may later resume the execution at the original location using the saved information.Forexample,afloatingpoint Question. 3. Write a note on tracking the sessions using cookies. List the advantages and disadvantages of cookies Answer:A cookie is a small piece of text file stored on user's computer in the form of name-value pair. Cookies are used by websites to keep track of visitors e.g. to keep user information like username etc. If any web application using cookies, Server send cookies and client browser will store it. The browser then returns the cookie to the server at the next time the page is requested. The most common example of using a cookie is to store User information, User preferences, Password Remember Option etc.It is also one of the commonand mostlyaskedinterview Question. 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 repliestoclients. 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 processing tasks. The servlet acts as a controller responsible forprocessingrequestsand Question. 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 handled, and component data be propagated to beansinan orderlyfashion.
  • 3. Question. 6. Describe the process of deactivating individual expression language statements with example. Answer:Deactivatingthe ExpressionLanguage in an Entire WebApplication:- The JSP 2.0 expression language is automatically in web applications whose deployed descriptor refers to servletspecificationversion2.3or earlier. On the otherhand,the following web.xmlfile is fully solved assignments Send your semester & Specialization name to our mail id : “ help.mbaassignments@gmail.com ” or Call us at : 08263069601 (Prefer mailing. Call in emergency )