WDD_lec_39 - Case Study MVC Lec 39 Error Pages Error Pages...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Case Study + MVC Lec - 39
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Error Pages
Background image of page 2
Error Pages By means of the page directive, a JSP can be given the responsibility of an Error page An Error JSP will be called by the Web Server when an uncaught exception gets generated The exception is passed as an instance of java.lang.Throwable to the Error JSP (accessible via implicit exception object )
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Defining Error Pages isErrorPage attribute of page directive is used to declare a JSP as an error page. JSP pages are informed about the error page by setting errorPage attribute of page directive.
Background image of page 4
Example Case Study Address Book using Model-1 architecture
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Address Book ingredients Database
Background image of page 6
Address Book ingredients JavaBeans PersonInfo Has attributes name address phoneNum PersonDAO Encapsulate Database logic Used to retrieve & save PersonInfo data
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Address Book ingredients JavaServer Pages addperson.jsp Used to collect new person info saveperson.jsp Receives person info from addperson.jsp
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/01/2010 for the course CS CS506 taught by Professor mr. umair javed during the Spring '10 term at Virtual University of Pakistan.

Page1 / 23

WDD_lec_39 - Case Study MVC Lec 39 Error Pages Error Pages...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online