SagarSe7en 0 Junior Poster in Training

Hello Guys! Posting this thread based on the topic of NumberFormatException null...


This is how it goes.

Im calling records from the db into a JSP.

String FirstName = Results.getString("FirstName");
      String MiddleName = Results.getString("MiddleName");
      String LastName = Results.getString("LastName");
      int BorrowerID = Integer.parseInt(Results.getString("BorrowerID"));

When i try to call it in the JSP like this:

<input type="text" name="BorrowerID" value="<%=Book.getBorrowerID()%>"

It gives me NumberFormatException Null.

What To Do About This? I all need Your Help!

All REPLIES Welcome!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.