aspose file tools*
The moose likes Spring and the fly likes getParameterValues issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "getParameterValues issue" Watch "getParameterValues issue" New topic
Author

getParameterValues issue

James Daniel
Ranch Hand

Joined: Sep 24, 2004
Posts: 80
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

Joined: Jan 10, 2002
Posts: 61433
    
  67

Have you used an HTTP sniffer tool to see if the parameter is even in the request?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
James Daniel
Ranch Hand

Joined: Sep 24, 2004
Posts: 80
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

Joined: Jan 10, 2002
Posts: 61433
    
  67

HttpFox is a free plugin for Firefox.
James Daniel
Ranch Hand

Joined: Sep 24, 2004
Posts: 80
Thanks for the info. I will check it out.

Jim
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getParameterValues issue