• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

JSP's or JSP includes or DB  RSS feed

 
Ranch Hand
Posts: 125
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have an application where i have 50 different states. I am using single JSP to serve all the 50 different state pages.
Also i have 250 different games, and using single JSP page to serve 250 different games pages.

As part of SEO, i had to add 500 word articles to each page, i.e. now each game going to have 500 words article.

Can you suggest me the correct approach to achieve it ..

1. I can save the article text in DB against state record and load it and show
2. I can have jsp fragments (ohio.jspf, newyork.jspf etc.,) created for each state and include it conditionally on the STATE.jsp
3. Or I can have different jsps for each state and pick the mapping based on state id in the action .

Let me know if you need additional details..
 
author & internet detective
Marshal
Posts: 38682
677
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bala,
I would choose option #1 - a database or property file with the text that changes. Creating 50 duplicate pages (or fragments) is going to have duplicate code.
 
Bartender
Posts: 1845
10
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also keep in mind what your URL to each state / game will look like.
Crawlers work better with unique URLs rather than having the same URL with different parameters.

 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!