Another less sophisticated option is the html package in our open source
Expresso framework. It has a package that allows you to build basic HTML via
objects (e.g. a Page, which can contain a Form, Table, etc). For the more
complex stuff I'd have a look at JSP. You can get Expresso at
http://www.javacorporate.com.

Mike
Javacorporate Ltd
http://www.javacorporate.com

> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's
> Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> RAHIMUNISA_N
> Sent: Thursday, October 14, 1999 2:34 AM
> To: [EMAIL PROTECTED]
> Subject: writing codes using servlets
> Importance: High
>
>
> when we embed html in doget() or doPost()
> we say
> printwriter pw = PrintWriter pw= res.getWriter();
> pw.println("<html>");
> pw.println("<head>");
> pw.println("<table ..>");
> pw.println("<tr>");
> pw.println("<tr>");
> ..........
> ..
> pw.println("<\html>");
> the code is clumsy .
> i will not prefer to use
> pw.println("<html><head> <title>  Hello word application
> ,/title></head><body><table cellpadding=3 cellspacing=5 border=2
> bgcolor=blue><tr>...............
> ..................  </html>");
> this is difficult to manage .
>
> is there any simple way to embed html in servlets ?
>
> when we use oracle wed server with plsql cartriges we say
> htp.print('
> <html>
> <head>
>    <title>
>         Hello world
>    <\title>
> ....
> ...
> </html>   ');
> this eases the maintainability .
> such a thing is not possible when we use pw.println() method.
> i just want to  whether there is an simple way to code .
>
> Thanks.
>
> ______________________________________________________________
> _____________
> 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