The moose likes Servlets and the fly likes problem with error mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem with error mapping" Watch "problem with error mapping" New topic

problem with error mapping

Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Dear sir

I am using sun microsystem application server in which i am trying to deployee a
file in which i am using three file
1. first for user input as Calculate.html
2. second for calculate as Calculate.class
3. Third for customise ErrorServlet page as ErrorServlet.class

in html file i am writting like
<form action="http://localhost:8080//err_demo/servlet1">

and i am adding remaning 2 and 3 file in same context root as err_demo with alias
servlet1,servlet2 respectivly. Now what should i write in error mapping below option
Resource to be called
i am writting there

but when error is occuring calculate class is not calling this Error page

by the way calculate class thrwoing NumberFormatException

coding of these file as below



* When i am entering the number 5,Y in HTML page it should call that of error page
but unfortunately not i think that problem is with mapping process but what problem i
am unable to recognised that please tell me that what should i have to write in error mapping

with regard

Arun kumar maalik
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Can you also post the error-page mapping in your web.xml ?

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: problem with error mapping
It's not a secret anymore!