Struts and pictures upload
1 posts in topic
Flat View  Flat View

Posted By:   joey_corleon
Posted On:   Saturday, November 16, 2002 09:47 AM


With Struts, am can upload files (in my case pictures) and save them anywhere I want on my hard drive.

My problem is I cannot figure out how to reference this same pictures on my hard drive later to display it to the user ... Can anyone help????


Re: Struts and pictures upload

Posted By:   Brian_Kapellusch  
Posted On:   Saturday, November 16, 2002 11:24 AM

Well, you basically need to make sure that you're storing the pictures in a directory that's under your document root for your directory.... Most people who create a webapp create an images dir in their document root. Then, you can just use a plain html tag to serve that image up.
About | Sitemap | Contact