[EMAIL PROTECTED] wrote:

use html:image tag...

And generate the path dynamically something like...

<%!String imagePath=""; %>

If I know my JSP correctly, <%! is a declarator -- and those things you declare in this fashion are instance-level variables. In other words this is *not* thread-safe. Use <jsp:useBean or decalre a variable using <% String ... instead.

<%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.
--
Eddie Bush





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

Reply via email to