I built an application on WLS 6.1 using Struts 1.0 that supported display of 
user-uploaded content.  Several keys to this were:

1) I had to deploy the web app in exploded format
2) If WLS was run in Production Mode I had to call a little runtime script that 
deployed (refreshed) the new content (otherwise, it would not be available)
3) I stored the content in a context-relative folder -- though, I used a database 
table to hold content metadata which included the content mime type, the 
context-relative URL, and user-supplied title and description, and system-generated 
file name.
4) I used the Struts support for upload to perform the upload.

Let me know if this helps -- If you have specific questions e-mail me directly as this 
is a bit OT for Struts.

-----Original Message-----
From: Amit Badheka [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 4:16 AM
To: Struts Users Mailing List
Subject: Access external file from web application


Hi All,

Is there any way to access a file(image,..etc) from the web application. the path of 
the image is dynamically generated.

The requirement is that we have to upload a image file and store it to somewhere on 
server at dynamically generated path. Now, Problem is how I should refer this file 
from the application, As the application don't know the path at the time of 
implementation(application).

Please help. 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to