File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Struts : html:select

Alpa Malani

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="" target="_blank" rel="nofollow">blog</a>
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

Moved to the Struts forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Struts : html:select
It's not a secret anymore!