
Hello Sir, I'm using Integer.parseInt(String str) function which returns a NumberFormatException(Unknown source). I also used Integer.parseInt(String str, int radix) but it also throws the exception. I used the same type of code in a simple .java program but when I.m using it in a JSP it continuously throws the exception. below is the code I used. Please help me out of this problem.
CODE: <% String t2=request.getParameter("time"); int t1=Integer.parseInt(t2, 10); String str="";
%> <% if(t1>=0000 && t1<=2400) { int b=obj.timeInsert(t1); //obj is the object from class DBLogic which has a method to insert time in Database table %>
<% } else { str="Wrong Time Entered. Please Enter Proper Time."; } %>

Hi Friend,
Please post your code.
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.