Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating HTML pages

 
Luke Shannon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello;

I am building an application that generates static HTML pages based on the data in a database.

Does anyone know of any packages that exist for such a task, some sort of HTML template class or something like that? Anyone done this before and can offer some tips?

Thanks,

Luke
[ December 12, 2004: Message edited by: Luke Shannon ]
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google for "java document management" and you'll find some pretty good open source projects. I found them a little huge and involved for what I needed and haven't actually tried any yet.

You might look at Java Wiki code like FrikiWiki (the author is here at the ranch) and Fitnesse. These do "real time" conversion of templates to HTML on a dynamic web server, but you could surely borrow some of the rendering ideas to use in batch to generate static HTML.

I generate static HTML for my hobby site in a scripting language (REXX) that lets me execute a block of code in a string so it was dead simple to embed script into my templates. It's described HERE but it looks like the link to dowload it is missing. Lemme know if it's at all interesting.
 
Luke Shannon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Stan.

I am going to look through some of these open source options.

Luke
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also velocity and
FreeMarker. Both very suitable for generating HTML, with stuff from database.
 
Luke Shannon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Freemarker looks very close to what I was searching for.

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic