• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 s:select

 
Kim Long
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

i'm having trouble using the namespace of the s:select element.
I'm using the s:select to populate a list of objects which works fine.
My goal is when a specific value was set and submitted it should be put
on the getter method which i define on the namespace.
I have read that struts 2 somehow has trouble with the s:select making this.
Any recommandations ? Or is there maybe a working example with this specific scenario which i can lookup.

Thanks for your help in advance

regards

Kim
 
Kim Long
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no suggestions ?
 
sunil gupta
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you have a getter method with the same name as your select name it will set that method with the selected value and then you can call getter method to get the value. it is all done auto matically, just define the get and set method int he action class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic