Whenever you iterate over an implemnentation of java.util.Map, you get an object of type Map.Entry which has a key property and a value property. Knowing this, if you have a Map stored in session scope, you can create a list of options like this:
</select> But this line value=<bean:write name="match" property="key"/>> is not a valid line in JSP.How can i do this?Pliz help.Thanks in advance
Joined: Feb 15, 2005
I notice a lot of your posts get posted two or three times. I can understand that happening when the system is slow, but did you know you can delete the extra post if that happens? Just click on the icon that looks like a pencil and piece of paper to edit the post. On the page that follows, ceck the "delete" checkbox and click the "edit post" button. That will get rid of the extra post.
Now, in answer to your question:
Just put the <bean:write /> in single quotes like this: <option name="uid" value='<bean:write name="match" property="key"/>'>