use html:image tag...

And generate the path dynamically something like...

<%!String imagePath=""; %>

<%imagePath=session.getAttribute("path");//can be any logic u have to generate 
the image path...Better if u can put this logic in action and put just the path 
attribute on form:-))  ...%>

<html:img src="<%=imagePath%>" width="180" height="25"/>

regards,
Shirish

-----Original Message-----
From: amit [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 10:16 AM
To: struts-user
Cc: amit
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