• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Selection Drop Down in Struts

 
sandeep_saluja
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Is there a way to get both ID and Value of Multiple Selection Drop Down in Struts1.1.
Thanks
Sandeep
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the struts forum since this is a struts question.
 
Srikanth Shenoy
author
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has got nothing to do with Struts.
The HTTP protocol states that only ID be returned in a drop down (single or multiple)
If you want both to be returned, you have to append both and make it the ID during display and then split them on the server side on submission.
-Srikanth
Author: Struts Survival Guide - Basics to Best Practices
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic