Package au.id.jericho.lib.html

Examples of au.id.jericho.lib.html.FormFields


  }

  private void saveFormFilesForImport(String definition, String defVerId) throws Exception {
    Source source = new Source(new String(definition));
    source.setLogWriter(new OutputStreamWriter(System.err));
    FormFields formFields = source.findFormFields();

    StringBuffer sb = new StringBuffer();
    for (Iterator i = formFields.iterator(); i.hasNext();) {
      FormField formField = (FormField) i.next();
      formFields.addValue(formField.getName(), sb.toString());
      sb.setLength(0);
    }
   
    OutputDocument outputDocument = new OutputDocument(source);
    outputDocument.replace(formFields);
View Full Code Here


      source.setLogWriter(new OutputStreamWriter(System.err)); // send
                                    // log
                                    // messages
                                    // to
                                    // stderr
      FormFields formFields=source.findFormFields();
      System.out.println("The document contains "+formFields.size()+" form fields:\n");
     
      StringBuffer sb = new StringBuffer();
      for (Iterator i=formFields.iterator(); i.hasNext();) {
        FormField formField=(FormField)i.next();
        System.out.println(formField.getName());
        System.out.println(formField.getFormControl().getFormControlType().toString());
        System.out.println(formField.getDebugInfo());
       
        // sb.append("<" + "%=" + formField.getName() + "%" + ">");
        formFields.addValue(formField.getName(),sb.toString());
        sb.setLength(0);
      }
     
     
      OutputDocument outputDocument=new OutputDocument(source);
View Full Code Here

TOP

Related Classes of au.id.jericho.lib.html.FormFields

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.