Hi Bill:

Our CueServlet (XMLServlet v4.5) does just that.  Use as compiled, or extend
it by overriding one or two designated methods.  Comes with extensions
XSLServlet, TagServlet, XMLMail, XMLCookieServlet....

Have a look at ceriumworks.com or write....  I could also supply examples of
apps written around XMLServlet and extensions thereof....

John Hicks
ceriumworks.com
XMLOutline XMLdb XMLServlet

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Bill
Wyza
Sent: Thursday, June 29, 2000 12:56 PM
To: [EMAIL PROTECTED]
Subject: Read a file and substitute some text


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

___________________________________________________________________________
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