You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rizwan Ahamad <ri...@jarirbookstore.com> on 2006/03/05 18:44:03 UTC
using
Hi
I am having problems setting <html:option> dynamically along with sql
tags
Here is the source ,
After setting the databases and queries....
<TH>vendor</TH>
<TD><html:select property="vendor">
<c:forEach var="row" items="${query1.rows}" >
<html:option value=="${row.VPAN8}" ><c:out
value="${row.VPAN8}"/></html:option>
</c:forEach>
</html:select></TD>
</TR>
I am lost how to set the value inside <html:option value="${row.VPAN8}"
as this always returns the whole thing inside the quotes like below
<option value="${row.VPAN8}" >12495</option>
Any help would be appreciated,
Thanks
Rizwan
http://www.rizwan.in <http://www.rizwan.in/>
-----------------------------------------------------------------------------------------------------------------------------------------------
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the Administrator. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this e-mail and any attachment for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this e-mail.
Jarir Bookstore ..not just a bookstore
Visit us: www.jarirbookstore.com
5/3/2006
Re: using
Posted by Wendy Smoak <ws...@gmail.com>.
On 3/5/06, Rizwan Ahamad <ri...@jarirbookstore.com> wrote:
> <html:option value=="${row.VPAN8}" ><c:out
> value="${row.VPAN8}"/></html:option>
> </c:forEach>
>
> I am lost how to set the value inside <html:option value="${row.VPAN8}"
> as this always returns the whole thing inside the quotes like below
>
> <option value="${row.VPAN8}" >12495</option>
>
> Any help would be appreciated,
What Servlet spec version are you using? (Alternately, what version
of what Servlet container?)
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org