I am writing a servlet that uses the same basic form over and over
but with a different set of values in a select box.  I want to be able
to read in the basic html file, with some kind of dummy value
for the select options, then get my options from the database, and
output the modified html.

This is the code fragment in the html file:

                        <select name="select2" size="1">
                         #abcdefgh#
                        </select>

This is the code to create the opotions list from the database:

    mastervect= vconn.getmaster();
    pw.println("<html><body>");
    for (int i = 0; i < mastervect.size(); i ++) {
      master b = (master)mastervect.elementAt(i);
        bb+ = "<option >"+b.mastename+"</option>";
      }

How do read in the html file and substitute my options for the string
#abcdefg#?

Thanks
Bill

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to