Please provide some more details. Your description is really
too vague to respond to.

However, If you are attempting to generate a 'complicated'
html document, a JSP or set of JSP (with JSP or HTML
includes) provides ample means for generating highly
complicated HTML. You may want to consider using
CSS as well. This may simplify your html somewhat.

You're right about using 'out.println("...");'. This technique is
extremely clumsy, and difficult to maintain. JSP's give you
the ability to write plain-vanilla HTML, which you can intersperse
with java code that can do the fancy stuff. When you add
taglibs to the mix, then you can do some very powerful things
with some fairly simple HTML / XML.

Regards,

Tom Drake

----- Original Message ----- 
From: "renyu teng" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 26, 2001 6:09 PM
Subject: Create JSP file or a Servlet file for web browser.


| 
| As a new guy to use tomcat, I have the following
| question:
| 
| if I want to dump the response to a web browser, then
| I need to format this into html or xml. However, it is
| really complicate html file, I should have tools to do
| it, right? I feel it is too clumsy to write all the
| html text through out.println. How the complicated web
| pages are created in the really project? could anyone
| please shed some light to it? I have gone throught
| some jsp & servlet books, and the projects inside the
| books are really too simple. 
| 
| how could a complicated web pages are created through
| println statement? And if so, how could you control
| the layout? I feel it is impossible, but I may be
| wrong.
| 
| thanks.
| teng
| 
| __________________________________________________
| Do You Yahoo!?
| Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
| http://geocities.yahoo.com/ps/info1
| 
| --
| To unsubscribe:   <mailto:[EMAIL PROTECTED]>
| For additional commands: <mailto:[EMAIL PROTECTED]>
| Troubles with the list: <mailto:[EMAIL PROTECTED]>
| 
| 
| 


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to