• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Passing a parameter to a controller

 
Ranch Hand
Posts: 494
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have code that works.
Html

Controller

But very similar code is not working
Html

Controller

In the browser I get the message "HTTP Status 400 – Bad Request".
In Eclipse I get the message
2020-06-26 10:49:50.686  WARN 13780 --- [nio-8080-exec-4] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'fullName' is not present]
 
Alejandro Barrero
Ranch Hand
Posts: 494
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I changed GET tp POST and now it works. I am stumbled.
 
Now I am super curious what sports would be like if we allowed drugs and tiny ads.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic