my dog learned polymorphism*
The moose likes JForum and the fly likes Separating static and dynamic file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Separating static and dynamic file" Watch "Separating static and dynamic file" New topic

Separating static and dynamic file

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424

Does anyone has the guildline or documentation about which files are static and which files are dynamic ? I was requested to put all the static files to another Apache server while the dynamic one will be served by Tomcat.
[originally posted on by mesostructure]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Pretty much everything in jForum is dynamic since it supports multiple templates. I.e., the locations of images, js, and the like files are defined by Freemarker scripts which use information set from jForum and the web app server. In addition, some of the images are related to the user's language choices.

If you're using a single template, your MIGHT be able to add in some proxy rules to redirect URLs like /jForum/templates/default/ to a copy of this directory on the Apache server. But I've never done this before.. just a theoretical possibility.

An alternative might be to edit the html template files to use a different URL for images, javascript, css, and the like. But that's a fair number of files to change and make sure they work.

[originally posted on by monroe]
I agree. Here's the link:
subject: Separating static and dynamic file
Similar Threads
Difference b/w Dynamic & Static Servlets
Apache HTTP server dynamic files rendering
What is the differences between 2 includes of JSP?