How do you solve a NumberFormatException?

I have a jsp page where I am using JSTL to display data, like so:















${event.eventID}${event.title}"


Problem is that this page returns an error 500 - NumberFormatException: For input string: "eventID".

Why is this, is it due to my getters and setters in the Event.java that the events object comes from?

event.java getter and setter

public String GetEventID() {

return eventID;

}

public void SetEventID(String eventID) {

this.eventID = eventID;

}

I am failing to see where this error comes from as it doesn't seem to be a type error (my type is a string throughout).

Thanks....

Read More »

By: StackOverFlow - 6 days ago

Related Posts