• 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

spring:bind not setting values in the command object

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have tried this in one of the JSPs in my application, it works very well. But When I do it on any of subsequent or other JSPs I dont get values set into my command object. Please have a look at the following code and let me know where I am going wrong.
Note, I tried to copy from the download functionality to get this working, Hence the form bean reused here. But it did not work when I had upload bean either. So copying the code as it is.

Spring XML



Controller


JSP




Command class






In the log file, the following line has null for searchstring. Please let me know what is wrong in the code.




Thanks,
Kavitha.
reply
    Bookmark Topic Watch Topic
  • New Topic