David Newton wrote:
krishna Karthikk wrote:Save all the images in your application, in some directory. If the user is uploading the images to the server those images must be saved in the application itself.
I recommend against saving non-application files in the application. Besides that it might not work (for example, if you're deploying a war file), you also run the risk of those files being deleted during a re-deploy. Better to save them outside the application.
I have changed where the app save the Image files to a shared http folder. I have in working except, when the page initially displays I type in a scope parameter click link and DIV tag is loaded with JSP displaying the image, good so far. Now if I change the scope and click the link the image does not change and will not change until I stop the app and re-start it. I was under the impression that myDivTag.load() refreshed the JSP including the link used in the img tag.
Here is my js that does all the work:
Here is the servlet that creates the image:
Here is the servlet that loads the DIV tag JSP:
Here is the JSP that displays the image: