| Author |
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 /servlet2/ErrorServlet 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é
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
|
Can you also post the error-page mapping in your web.xml ?
|
[My Blog]
All roads lead to JavaRanch
|
 |
 |
|
|
subject: problem with error mapping
|
|
|