wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts :  html:select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts :  html:select" Watch "Struts :  html:select" New topic
Author

Struts : html:select

Alpa Malani
Greenhorn

Joined: Mar 16, 2005
Posts: 2
I have a combo box which is filled by a method in bean. I call the method in <jsp:iterate collection="<%=beanname.methodname()%>. Now on change I submitthis page and getthe value selected. Actually the property which I take in select contais a concatenated value. I set them explicitly in action class. But when I use <logic resent> to check the value setfor id to show thatcombo box selected it is getting.

I only want the selected value in combo to be shown as selected in the selectbox.
Venkatraman Kandaswamy
Ranch Hand

Joined: Jul 07, 2004
Posts: 120
Why dont you post the snippet for the combo box in JSP and the part in the servlet where you try to get the value of the combo box.

Also tell with an example what you are expecting and what you are actually getting.


--Venkatraman<br />SCJP 1.4<br /><a href="http://kvrlogs.blogspot.com" target="_blank" rel="nofollow">blog</a>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Moved to the Struts forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
jQuery in Action, 2nd edition
 
subject: Struts : html:select
 
Similar Threads
Struts : html:select
How pass the selected values of the Combo box to the servlet....
How pass the selected values of the Combo box to the servlet....
combo box selection in jsp
skip value in logic: iterate