struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bryan <nihil...@gmail.com>
Subject Re: Where to store and how to retrieve Images for web app
Date Tue, 07 Dec 2004 15:33:18 GMT
1) Store them to your relational database, 
2) Add oscache to your web application. 
3) Change your web.xml so that it contains the following filters.

	<filter>
		<filter-name>CacheFilter</filter-name>
<filter-class>com.opensymphony.oscache.web.filter.CacheFilter</filter-class>
	</filter>

	<filter-mapping>
      <filter-name>CacheFilter</filter-name>
      <url-pattern>/customer/displayImage.do</url-pattern>
    </filter-mapping>
    
4) Now you have relational database storage, all the fun, and none of the pain.

5) You can configure oscache in a variety of ways, check out
opensymphony website/google for more.

Bryan
-- 
http://www.revoltingdigits.com
https://jestate.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message