Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

problem with error mapping

Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 14691
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you also post the error-page mapping in your web.xml ?
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic