• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

I cannot get parameters as class from JSP

 
Ranch Hand
Posts: 49
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?



 
author & internet detective
Posts: 42173
937
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 49
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Ranch Hand
Posts: 93
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).  
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic