What's the reason of NumberFormatException in jsp file

Questions by questioninterest

Showing Answers 1 - 4 of 4 Answers

raklv

  • Sep 5th, 2006
 

It is usually with database field problem.check the database fields.

  Was this answer useful?  Yes

saravanan

  • Oct 9th, 2006
 

this will happen when you are casting string to number.

ie for example.. int i = Integer.parseInt("hiii");

the above line will throw the numberFormateException in java.

  Was this answer useful?  Yes

saravanan

  • Oct 9th, 2006
 

this will happen in java

when the code is int i = Integer.parseInt("hiiiiiiii");

  Was this answer useful?  Yes

Sudhir

  • Oct 28th, 2006
 

HttpServletRequest interface has the methods to get Header Info. To get the int Header "getIntHeader" can be used. If the Header cannot be converted to an integer, then "NumberFormatException" is thrown.

regards,

Sudhir

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions