This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a dynamically .Html file from jsp and storing that file in a folder as .html

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
i want to create a .html file dynamically using jsp.Its like building a home page builder using jsp.I take values from database and create a .html file and then save that file in a folder as .html file.Please help me Its urgent.
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How you do this depends on how manual you want the process to be, and how often you want to do it.
Here's a fairly simple manual answer:
First configure your webserver to process files with a ".html" extension as if they are jsps. Then build your site using any combination of static html and jsp code, but all in ".html" files. When you are happy that everything works, use your browser to save each file in turn until you have built a new directory tree for your "static" site. Then reconfigure your webserver so html files are just passed through, and to point at your new static documents, or just use a different server. Done!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic