• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stripes: how to map a select option from a form to an object from an Action?

 
Vadim Vararu
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to map a <select> option from a form to an object from an Action?
 
Vadim Vararu
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




How is option mapped to comicsCategory object from my Action? I need to map comicsCategoryId to comicsCategory.setComicsCategoryId() and comicsCategoryName to comicsCategory.setComicsCategoryName(), but, i don't know why, i get comicsCategory.comicsCategoryName = 2 (what is actually 'id').
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic