Hi Patrick,

you want to get the path of /myapp 
like C:\Tomcat\webapps\myapp
or?

that is done with:

String placeString = 
getServlet().getServletContext().getRealPath("/");

in an actionClass.

you now want to store
in placeString\uploaddir
isn�t it?

i wrote an Util-Class which managed the
storage in my action.
one parameter is the formfile the other the placeToStore.
you can get it, if you want...



-----Original Message-----
From: Patrick Scheuerer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 30, 2003 1:12 PM
To: Struts Users Mailing List
Subject: Re: Still having problems with File upload (multipart-formdata)


Brice Ruth wrote:

> I'm refactoring (so to speak) my currently working form, which accepts
> an image to be uploaded, to use a DynaValidator(Action?)Form and I'm 
> again running into an exception being thrown:

Hi Brice,
I'm also struggling with file uploads at the moment. But I'm stuck at an
earlier 
stage than you.
Could you please post some of your code on how to handle the file upload
in the 
action class?
I'm having problems to figure out how to write the file to a
subdirectory of my 
web application root.

Your help would be highly appreciated!
Thank you, Patrick


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


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

Reply via email to