• 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

Get value of dynamically generated input boxes in Controller using Spring 2.5

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am using annotations based Spring.
I have a list of dynamically generated text boxes (eg textbox1, textbox 2 etc) on a jsp page. And their count can be more than 100 also.
Now I want to receive the value of all the text boxes in an annotation based controller where I use @RequestParam to get value of request parameter.

Can anyone please tell how can I get value of all the dynamically generated text boxes in controller?

Thanks
 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how are you generating the textbox's(are you using jsp or any other UI), if you are using jsp then make use of JSTL taglib to generate the textbox's and also the set the value for them, now you can get those values in your controller using HttpServletRequest object.
 
vardeep kaur
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No I am not asking for this. I am asking when we get request parameters in Spring controller using annotations(@RequestParam) .
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic