File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes HTML parser or servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HTML parser or servlets" Watch "HTML parser or servlets" New topic

HTML parser or servlets

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Can any body tell me if there is a parser that would parse out a ppiece
of HTML code into java out.println().
for example <PRE width="80">
has to be written out.println("<PRE width=\"80\">").
because of java syntax.
Is there a way to write out code in HTML and run it through a parser that
would lay it out properly?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12983
That kind of parsing is exactly what a JSP engine does when it creates a servlet out of the combination of HTML markup and JSP tags that make up a JSP page.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Please note that The Java Ranch has a naming policy, described here and "orshulim" is not a valid name. Please choose one which meets the requirements.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
wood burning stoves
subject: HTML parser or servlets
It's not a secret anymore!