aspose file tools*
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "could we have this?" Watch "could we have this?" New topic
Author

could we have this?

Nicky Eng
Ranch Hand

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

-----------------
.........
.........
<error-page>
<exception-type></exception-type>
<location></location>
</error-page>

<error-page>
<exception-type<exception-type>
<location></location>
</error-page>
.........
.........
--------------------
or just one only?

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


From NickyEng
Diploma in Computer Studies
SCJP 1.4
SCWCD 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 :

<web-app...>

<error-page>
<exception-type>java.io.IOException</exception-type>
<location>/blabla.jsp</location>
</error-page>

<error-page>
<exception-type>java.lang.Throwable<exception-type>
<location>/ja.jsp</location>
</error-page>

</web-app>

???
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.

Regards,
Priya.
Alexandre Cervieri
Greenhorn

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?