• Post Reply Bookmark Topic Watch Topic
  • New Topic

Managing JSP Page Content Dynamically

 
Mike London
Ranch Hand
Posts: 1290
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To help add content dynamically for part of a page, I've been told that Server Side Includes are a good way to go.

The idea is to be able to swap content in for a particular "Div" tag, but leave most of the page alone.

I was wondering if a regular JSP "include" might be just as good a solution.

Aren't Server Side Includes kind of "so yesterday" ???

Thanks in advance for any JSP-inspired replies!

Mike
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP's include directive does exactly the same thing as a server side include.
JSP also has the jsp:include action, which is more dynamic.
This article in our JSP FAQ covers the difference between the two.

Server Side Include (SSI) aren't really outdated. It's just not needed when working with technologies like JSP, PHP, ASP, etc...
If static HTML pages are your only option, they're a good tool for avoiding duplicate code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!