Newsletter sign-up
View all newsletters

Sign up for our Enterprise Java Newsletter

Enterprise Java
JavaWorld Daily Brew

How to manage content and optimize usign struts2/JSP


I have a forum running on pure struts2/jsp and MySQL on tomcat 6. Here is how it works currently.
- user logs in and clicks on the forum topic
- DB is queried, and posts populated , and shown to the user.
- if user adds a post, same is inserted and page refreshed.
- even for showing old posts, which dont change with time i query DB

I want to optimize performance by somehow converting the forum pages into htmls, so that i don't need to query DB everytime, because the posts once posted don't change.Only while doing a new post, i should be doing a db call.

Are there any known frameworks I should be using. Is there something i can incorporate into my existing app and improve performance ?

Your rating: None Average: 3 (1 vote)

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br /> <br> <strike>
  • Lines and paragraphs break automatically.
  • Use <!--pagebreak--> to create page breaks.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
Just checking to see if you're an actual person rather than a spammer. Sorry for the inconvenience.