tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amol Yadwadkar" <ayadwad...@webifyservices.com>
Subject Re: Uploading the file @ Desired Location!!!!
Date Tue, 05 Aug 2003 14:30:48 GMT
Hi Howard,

I have downloaded Beta 2 Version For tapestry
But Unfortunatelly I didn't get Method write() for IUploadFile!!!!
Can U pls Throw some Light on it
It will be great!!!
Thankx
Amol


----- Original Message -----
From: "Howard M. Lewis Ship" <hlship@comcast.net>
To: "'Tapestry users'" <tapestry-user@jakarta.apache.org>; "'Amol
Yadwadkar'" <ayadwadkar@webifyservices.com>
Sent: Tuesday, July 29, 2003 5:52 PM
Subject: RE: Uploading the file @ Desired Location!!!!


> Tapestry uses Jakarta FileUpload component to handle uploads of files.  If
you dig around the
> documentation, you can see there's a lot of room to configure the "bridge"
between Tapestry and
> FileUpload using an application extension.
>
> beta-2 extends the IUploadFile with a write() method that allows you to
write the uploaded content
> to an arbitrary location.  write() is somewhat smart ... if the uploaded
file is already on disk, a
> write() will MOVE it to the new location, very efficient.
>
> --
> Howard M. Lewis Ship
> Creator, Tapestry: Java Web Components
> http://jakarta.apache.org/tapestry
>
>
>
> > -----Original Message-----
> > From: Amol Yadwadkar [mailto:ayadwadkar@webifyservices.com]
> > Sent: Tuesday, July 29, 2003 7:21 AM
> > To: Tapestry users
> > Subject: Uploading the file @ Desired Location!!!!
> > Importance: High
> >
> >
> > Hi all
> > I have used Upload Component Of Tapestry successfulyy.But....
> > What I am stuck at is as follows:-
> > ** When we upload the Browsed file it gets uploaded into the
> > App Servers' Bin Directory and the Code responsible for this
> > is :------------
> >
> > public String getServerPath() {
> >         if (serverFile != null) {
> >             return serverFile.getAbsolutePath();
> >         } else {
> >             return "";
> >         }
> >     }
> >
> > Question :-I will like like upload the file at my Desired path.
> >
> > In Doc its mentioned that use "ServletContext.getRealPath() "
> > which is fine but the My Question is How we can acheive this???
> > I have tried giving the above suggestion ....I got RunTime
> > Exceptions for uploading the File. Can anyone Sort this out
> > ???? Thankx Best regds, Amol Yadwadkar.
> >
> >
> >
> >
> >
> >
>


Mime
View raw message