This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HTML parser or servlets" Watch "HTML parser or servlets" New topic
Author

HTML parser or servlets

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi
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?
thanks
Shloime
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12809
    
    5
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.
Bill
Frank Carver
Sheriff

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.
Thanks.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HTML parser or servlets