Thanks, Cecile: You are absolutely right, I should use html:options. I actually used that for the other box. But this one is a dependent box, I am trying to use a JavaScript function to dynamically fill the second box. I am stuck here. I am not sure how I can get the selectedItem from the first box, send it through actionServlet->action class, get results from database, then use html:options to fill the second box. I am forced to try any option I have.
I believe this is one tricky part many people face, like what many people asked about this. It took me a long time trying to figure it out. If anyone has a clean solution to do dependent box population using Struts stuff, I will really appreciate it. regards, P. S.: sorry, I picked up my friend's topic, we both working on that. --- Cecile Mercado <[EMAIL PROTECTED]> wrote: > You really shouldn't be querying the database from > the presentation layer > (JSP) but in answer to your question, the only way I > can see to use > <html:option> is using scriptlets again: > > <logic:iterate id="employee" name="employees"> > <html:option value="<%= employee.getId()%>"><%= > employee.getName()%></html:option> > </logic:iterate> > > In the future, try to use <html:options> or > <html:optionsCollection> with a > collection of options. > > - Cecile > > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]