This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 12761
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTML parser or servlets
 
Similar Threads
how to run a servlet
How to upload a file using servlets to a webserver
while (unsolved) {BrickWall + Head}
Applet-servlet communication
getting Error in retrieving CGI variables