if(request.getParameter("number")==isum)
Problem is in this line(line 20)
Replace it by this
if(request.getParameter("number")!=null && Integer.parseInt(request.getParameter("number"))==isum)
Also make the following change in the body tag
<body>
<input type="button" value="go" onclick="doTheGObutton();">
<form action="index.jsp" method="post">
<%=fib1%> + <%=fib2%> = <input type="text" name="number">
<input type="submit" value="continue" name="submit">
</form>
</body>
This is required as the input text "number" is outside form so will not be submitted and write the name of submit button as "submit" as you are checking that in your code.
.
IIM
Practically a Master Poster
636 posts since Jun 2011
Reputation Points: 127
Solved Threads: 136
Skill Endorsements: 7
I have checked in my system and it is printing "correct".Hopefully you made all the changes correctly.
IIM
Practically a Master Poster
636 posts since Jun 2011
Reputation Points: 127
Solved Threads: 136
Skill Endorsements: 7