>Who know how to implement drop-down-list in JSP? I mean that when the
>JSP was invoked the JSP code fetch data from database via JDBC and fill
the
>information(such as department name and department number) in the
>drop-down-list in JSP and after the user select one item, the
>value(department number) was sent to servlet or javabean.

Parse you resultset directly into the JSP or create a bean that generate
this dropdown list. If you would like to forward the user choice
directly, one way is to send your form using Javascript event ( onChange
).

Hope this respond to your question, if not let me know.

Regards

-----Original Message-----
From: lancelot [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 4:17 AM
To: [EMAIL PROTECTED]
Subject: I need all you help


Excuse me,
    Who know how to implement drop-down-list in JSP? I mean that when
the
JSP was invoked the JSP code fetch data from database via JDBC and fill
the
information(such as department name and department number) in the
drop-down-list in JSP and after the user select one item, the
value(department number) was sent to servlet or javabean.
    And it's better if another function can be implemented, that is if
you
input the department number(0006 for example) then the department name
can
be fetch out automaticly(FA Dept. for expamle).
    I need all your help.
    Thanks a lot.

Lancelot

========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to