This discussion is archived
5 Replies Latest reply: Aug 1, 2013 12:48 AM by gimbal2 RSS

How to create files on my server(online) with servlets

905199 Newbie
Currently Being Moderated
Hello everyone

I'm making a website with articles (like a blog). I have a webpage called admin.html where you insert the data of the article (title, post etc).

Admin.html calls to a servlet and this sends the information to a SQL Database and it stores and my index.jsp calls to database and show the articles.


This works perfect, and a non-programmer can insert new articles. The problem is that I need to create an .html file for every article/post and save it into my server
online.


For example if I create "CoolArticle", I need the file "CoolArticle.html" and save it in my hosting.


How I can do it? I never have seen examples online, all were local, so I can't continue.


Thanks in advance.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points