*
The moose likes JSP and the fly likes Regarding jstl issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Regarding jstl issue" Watch "Regarding jstl issue" New topic
Author

Regarding jstl issue

yekkala krishna
Ranch Hand

Joined: Mar 04, 2007
Posts: 105
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

Joined: Jan 10, 2002
Posts: 61092
    
  66

You are setting every single option to selected. That's invalid. For a non-multi-select dropdown, only one option can be selected.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
yekkala krishna
Ranch Hand

Joined: Mar 04, 2007
Posts: 105
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

Joined: Jan 10, 2002
Posts: 61092
    
  66

Please read: ItDoesntWorkIsUseless. What exactly is not working?
 
jQuery in Action, 2nd edition
 
subject: Regarding jstl issue