Note that there are some explanatory texts on larger screens.

plurals
  1. POnews posts: put them in a .tag file or database
    primarykey
    data
    text
    <p>I'm thinking about making a simple web application to practice custom tags, EL, ... Now I'm thinking about how to make a simple front page.</p> <p>I want to have a front page where I'll show a short description of a post and then the user can click it to see the full article. Further down the line I'd like to attach a poster to it, and even further down the line I'd like to allow people to leave a comment.</p> <p>Now I see two ways to do this: a) put it all into a database b) put the short description and the article into a .tag file and put the comments and users into the database.</p> <p>Now I'm wondering which way would you go, or would you go for something entirely else? The first way is probably the easiest but it does require access to the database "often". The second way is a bit more "sloppy", especially depending on my implementation but it does have the advantage of accessing the database less often.</p> <p>And any recommendations on keeping the data actual? I could either load everything each time somebody accesses the news page, or I could put it in the application scope and put the articles into a bean and use a listener.</p> <p>And do you use hibernate/jdbc/... for a database connection?</p> <p>I'm getting the feeling that the actual programming will be the easiest part.</p> <p>Any directions (or book recommendations for that matter) are welcome. I've read head first servlets &amp; jsp, and while it does a wonderful job of explaining how to develop the application I find it a bit lacking in the when/how to connect with the database and how to optimize it.</p> <p>Sorry for the long post that possibly doesn't really fall under the scope of this site.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload