Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Input error  RSS feed

 
Parsuram Samal
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
Whenever after inserting data in a JSP form and clicking on the submit button the data is not sent to the database and it is showing For input string: "". Could you tell me the reason for it.
from Parsuram.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the full stack trace for your exception. It looks like you have some problem with the database query.
 
Vinod Tiwari
Ranch Hand
Posts: 466
1
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you need to check your code also to see if values are getting set properly into form.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read ItDoesntWorkIsUseless and TellTheDetails.
 
Parsuram Samal
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
Thanks to all who have replied. I had found the cause of the problem.Thanks again.
From Parsuram
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Parsuram Samal wrote:Thanks to all who have replied. I had found the cause of the problem.Thanks again.

It's considered polite to post the solution so that others with the same issue might benefit.
 
Parsuram Samal
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
The solution for the problem i had asked is that an empty string cannot be parsed that is in my project i simply copied the html code and the jsp code to another file and changed the name of the variables in both the client and server pages and it worked.After that i copied the modified html code and jsp code written in a separate file to my original application.
from Parsuram.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!