Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML parser or servlets

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic