• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 41860
908
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).  
 
reply
    Bookmark Topic Watch Topic
  • New Topic