This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

I cannot get parameters as class from JSP  RSS feed

 
Miri Yusifli
Ranch Hand
Posts: 42
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can see my class and controller below , and when i submit my JSP form , i see that 'HTTP 400 , The request sent by the client was syntactically incorrect.'
How can i solve this problem ?



 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Miri,
Can you share the URL that is sent to the server for that JSP. Or the JSP itself?
 
Miri Yusifli
Ranch Hand
Posts: 42
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Miri,
Can you share the URL that is sent to the server for that JSP. Or the JSP itself?


I found that , when i send null value for inputs i see this error , it works perfectly when i send real integer value .
these variables is declared as int in my class, you can see them above


 
Tim Nachreiner
Ranch Hand
Posts: 36
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Miri Yusifli wrote:

I found that , when i send null value for inputs i see this error , it works perfectly when i send real integer value .
these variables is declared as int in my class, you can see them above



I believe a member variable declared as 'int' cannot be null.  Change it to Integer (don't forget to update your getter/setter methods). 
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!