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

Reply via email to