hi,
for performance reasons, I would like some of my images, flashes etc to be served by Apache which is fronting my
JBoss. The problem is, that those images are uploaded to web site by operators, so I can not make static link in
JSP. So I made an approach:
I upload file to apache static content directory, save the file name and it's target page in database. Then in JSP page I use <h:outputText escape="false"... which is generating html code for >
with correct source (URL to static files + filename from database). Is it the best solution? I was wondering how to eliminate database between.
The reasons I am changing this are: the resources are not cached because now I am reading them from database using <input type="image" and
servlet, and to reduce number of requests to JBoss (
Tomcat).
Any tips or links much appreciated.
Thanks,
Michal>