This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes ServerSideIncludes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ServerSideIncludes" Watch "ServerSideIncludes" New topic
Author

ServerSideIncludes

sai prasanna
Ranch Hand

Joined: May 02, 2005
Posts: 167
hi all,
What is meant by ServerSideIncludes?
thanks in advance
saiprasanna
Ajith George
Ranch Hand

Joined: Dec 22, 2005
Posts: 109
SSI (Server Side Includes) are directives that are placed in HTML pages, and evaluated on the server while the pages are being served. They let you add dynamically generated content to an existing HTML page, without having to serve the entire page via a CGI program, or other dynamic technology.

The decision of when to use SSI, and when to have your page entirely generated by some program, is usually a matter of how much of the page is static, and how much needs to be recalculated every time the page is served. SSI is a great way to add small pieces of information, such as the current time. But if a majority of your page is being generated at the time that it is served, you need to look for some other solution.


SCJP 1.4, Brainbench
LinkedIn - Blog
sai prasanna
Ranch Hand

Joined: May 02, 2005
Posts: 167
hi all,
can you give me the real time scenario when we use ServerSideIncludes
thanks in advance
saiprasanna
John Wallace
Greenhorn

Joined: May 02, 2006
Posts: 17
I need to include a license agreement into a textarea. The boilerplate license agreement will exist as a text file, but it needs to be personalized. For example, where it reads "COMPANY will agree to..." in the text file, needs to be replaced with the actual company name entered by the customer at an earlier place in the web application. So, it might end up being displayed back to the customer as "XYZ Corp will agree to...". I thought about reading it in as a FileInputStream, and then parsing through it to perform the necessary string replacements (personalization), but I'm wondering if using filters would be a more elegant solution. I'm new to this and haven't even read the chapter on filters. If filters would be the best approach then I can read the chapter & do it that way. What is the best way to do this?


John Wallace - SCJP, SCWCD, ZCE 5.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ServerSideIncludes