I am new to jsp web hosting. I am creating an article editor as a CMS for my website. But I am confused between using file system and database to save my articles.
I have 2 options:
-
I can create my article in a html page locally on my PC. Then I will upload it on the web server directory, and will save its url path into my database. Then I can access my article link from anywhere in my website. Or,
-
I can store the main article content into the database. I will have a single template for all of my articles (as a Modal), and I will simply place the content at pre-defined places inside that template.
My concern with database is that: It may use a lot of server memory to load my website.
My concern with file system is that: I don't want to display the file extension (.html) in the url. Although this can be fixed with web.xml file. But editing web.xml file on a live server doesn't sound a good idea to me!
Kindly help me. What is the best method of creating articles in a jsp website? Are there other way to do it? Please help me.
Aucun commentaire:
Enregistrer un commentaire