This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Separating static and dynamic file" Watch "Separating static and dynamic file" New topic
Author

Separating static and dynamic file

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi,

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 jforum.net by mesostructure]
Migrated From Jforum.net
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 jforum.net by monroe]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Separating static and dynamic file
 
Similar Threads
What is the differences between 2 includes of JSP?
Difference b/w Dynamic & Static Servlets
jsp:include
Apache HTTP server dynamic files rendering
Container