KonaKart Community Forum

Installation / Configuration => Configuration of KonaKart => Topic started by: brzn99 on April 27, 2009, 12:05:49 am

Title: Image Help
Post by: brzn99 on April 27, 2009, 12:05:49 am
I am trying to understand the image architecture for products in konakart. The demo store comes with the images preloaded as part of the war. When new images are loaded, they need to be stored outside the war file. If i want my image named 'test1.jpg' to be stored in d:/images, what should the values be for:

Image base URL:
Image base Path:
Image Path:
Image Name:
Image 1:

Thanks for you help.

Bil
Title: Re: Image Help
Post by: heidi on April 27, 2009, 05:45:28 am
Have you read the help provided in the Admin App on the product images page?
Title: Re: Image Help
Post by: brzn99 on April 27, 2009, 04:37:32 pm
I did and it says to set the image base path to:

C:/jboss-4.2.2.GA/server/default/deploy/konakart.war/images

I cannot set the image base to anything deployed inside the war, because JBOSS will undeploy and redeploy thus deleting any images that are stored in the web app. I would like to have my images stored in c:/images which is completely outside the application. When I look at the jsp's, the images seem to be hardcoded as SRC=images/<%=prod.getImage%>

Do these jsps need to be updated with a new action to retrieve the images like:

SRC=getMyImage.do?image=<%=prod.getImage%>