Are you using 'value' in your option tags - eg
<select name="accountName" size="1">
<OPTION value=1>Savings acc</OPTION>
<OPTION value=2>Cheque acc</OPTION>
</select>
Regards, Paul
> -----Original Message-----
> From: Scott Fitzgerald [mailto:[EMAIL PROTECTED]]
> Sent: 31 May 2000 14:30
> To: [EMAIL PROTECTED]
> Subject: Submitting values from JSP to bean.
>
>
> Hello Everyone,
>
> Here's my problem:
>
> I have a JSP that fills a <select> list (with a list of
> names) from the
> contents of a resultset. The JSP calls a method in my bean
> which sends the
> query. The resultset in the bean then gets accessed from
> within the JSP and
> each item is added to the <select> list one at a time. This
> part works fine.
> However, the second part of my application involves making a
> selection in
> the list and then pressing a submit button which should then
> pass the value
> of the selection (a name) to a second method in my bean which
> sends a second
> query based on the value of the selection. The problem is
> that the only
> thing being sent when I press the submit button is the value
> of the button
> itself (ie the button's text). Right now the button is in a
> second JSP which
> I <%@include%> in the first JSP.
>
> Any help would be greatly appreciated.
>
> Scott
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets