wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes could we have this? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "could we have this?" Watch "could we have this?" New topic

could we have this?

Nicky Eng
Ranch Hand

Joined: Mar 26, 2005
Posts: 378
could we 2 error-page elements in DD ?


or just one only?

how about servlet element?
several <servlet> element in ONE DD...??

From NickyEng
Diploma in Computer Studies
SCJP 1.4
Formula 1 app by Maxis (Playbook)
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
You can have more than one error page and servlet definition as well.

SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Nicky Eng
Ranch Hand

Joined: Mar 26, 2005
Posts: 378
so we really can do this :





Priya Jothi
Ranch Hand

Joined: Jul 13, 2004
Posts: 168
Yes u can have that.

When IOException is thrown blabla.jsp will be displayed.For the rest of the exceptions ja.jsp would be displayed.

Alexandre Cervieri

Joined: Aug 02, 2005
Posts: 27
Hi, please correct me if I'm wrong. If you are handling different exception-types you can have multiple error-pages in a single DD, but you cannot have two error pages specifing the IOException for example, right?
I agree. Here's the link: http://aspose.com/file-tools
subject: could we have this?
Similar Threads
Can't a page throw more that one exception?
error-page doubt
Catching NullPointerException
please give me answer of these question soon