Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getParameterValues issue

 
James Daniel
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • 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..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64971
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64971
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpFox is a free plugin for Firefox.
 
James Daniel
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info. I will check it out.

Jim
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic