• Welcome to KonaKart Community Forum. Please login or sign up.
 

Location of product images

Started by ReneA, April 13, 2008, 06:43:25 pm

Previous topic - Next topic

ReneA

Hi,

We are in the process of customising Konakart to our needs. I managed to bring Konakart into an Eclipse development environment. So, now I can change the code, export to a war file and deploy it to Tomcat.

The product images are stored as part of the application structure. So, all product images are also in the war file which results in a rather large size of that war file. Also, it prevents that one person maintains the images by means of the admin application and another person takes care of development.

The solution is to create a separate directory in Tomcat's webapps directory and to change each reference to a product image in the jsp's, i.e. the ProductsBody.jsp:

change
<img src="images/<%=prod.getImage()%>" ......
into
<img src="/images/<%=prod.getImage()%>" ......

Rene