• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

getParameterValues issue

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know if this should be in Spring forum or not but don't know where it should go. I wrote a Spring MVC application also using Tiles. I need to use a pick list multiple select but when my controller tries to call request.getParameterValues it is alway null. I have put in request.getParameterNames() to see if I can even see the parameter but it doesn't even see it. I have tried eveything short of bleeding on the keyboard but am still not able to get the values. I also tried passing it as a string (javascript formats) with values seperated by a comma then use a tokenizer to seperate in the controller. When it is only one value, the parameter shows up but if I have two or more, the parameter disappears. At the end of my coding rope. Please help me retain my sanity..
 
Sheriff
Posts: 67695
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you used an HTTP sniffer tool to see if the parameter is even in the request?
 
James Daniel
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bear,

I haven't tried a sniffer. Do you of a good, or even bad, free one? I did put request.getParameterNames() and write out to the log. I don't see the parameter in the request. I am stumped because the HTML is very vanilla and should be picked up.

Jim
 
Bear Bibeault
Sheriff
Posts: 67695
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HttpFox is a free plugin for Firefox.
 
James Daniel
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the info. I will check it out.

Jim
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic