Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding jstl issue

 
yekkala krishna
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i am new to jstl point of view.could anybody help me to solve my issue.
i am iterating values in map as shown below.But the selected item from dropdown list is not coming into the screen its going to the last one in the list.
may i know where i need to change code either in javascript method or in jsp.
thanks in advance




regards,
rama krishna.y
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are setting every single option to selected. That's invalid. For a non-multi-select dropdown, only one option can be selected.
 
yekkala krishna
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear,

Good to see your reply.Its right what you are saying.
If i remove that selected="selected attribute from option tag also its not working properly.
is there any suggestion for this.

regards,
rama
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read: ItDoesntWorkIsUseless. What exactly is not working?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic