Java Cartridge - Form class ???

From: Dennis Harvey <harvey_at_newpath.com>
Date: 1997/06/30
Message-ID: <33B89CE7.433D_at_newpath.com>#1/1


When I use the Form class, as shown in the simple code snippet below, I end up with duplicated FORM tags in the resulting HTML.

Has anyone else seen this? Is it a bug? Is someone from Oracle listening?

Any help is greatly appreciated.

  • Dennis Harvey harvey_at_newpath.com 415-494-3407
     import oracle.html.*;
     
     public class TestForm {
       public static void main(String args[]) {
         HtmlPage pg = new HtmlPage("TestForm");
         HtmlBody bd = pg.getBody();
     
         Form form = new 
     Form("POST","http://localhost/java/dev/HelloWorld");
         bd.addItem(form);
     
         pg.printHeader();
         pg.print();
       }
     }
     
     

<HTML>
<!-- Generated by Oracle.html -->
<HEAD>
<TITLE>TestForm</TITLE>
</HEAD>
<BODY>
<FORM METHOD="POST" ACTION="http://localhost/java/dev/HelloWorld">
<FORM METHOD="POST"
ACTION="http://localhost/java/dev/HelloWorld"></FORM></FORM>
</BODY>
</HTML>
Received on Mon Jun 30 1997 - 00:00:00 CEST

Original text of this message