I personally find it easier to create the html page in one of the many nifty
GUI html editors to make it look like right. I then save it as a .JSP file
and add the java code to it to prefill the form elements.
John Zerbe - Mellon Bank
Phone: 412-234-1048 E-Mail: [EMAIL PROTECTED]
> -----Original Message-----
> From: Leandro Colen Rocha [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 20, 1999 2:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Writing a lot of html to the client...
>
> hi,
> try using StringBuffer object instead only String to place your html tags:
>
>
> StringBuffer sb = new StringBuffer();
> sb.append("Some Text");
>
> Then you can use a method from the HttpServletResponse class --
> setContentLength()
> res.setContentLength(sb.getLength());
> out.print(sb);
>
> information get from : http://www.servletsource.com/tips/performance.html
>
> bye!
>
> >Hello,
> >I have a form with about 100 fields. The html is
> >going to be sent to the client by a servlet and some
> >of the fields are populated with data that a servlet
> >will retrieve from a table. Now is there any
> >efficient way of writing this html to the client
> >rather then using an
> >res.setContentType("text/html");
> >PrintWriter out = res.getWriter();
> >out.println.....etc
> >out.println....
> >out.println....and so on.
> >Also, I have several drop down boxes that need to
> >populated with data from a table. Any suggestions on
> >how I could do this?
> >Thanks,
> >J
> >
> >
> >
> >_________________________________________________________
> >DO YOU YAHOO!?
> >Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >_________________________________________________________________________
> __
> >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
___________________________________________________________________________
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