Hi all,

Sorry for posting a jsp related qury rather tomcat one.But i need it badly
and i have to finish it with in one hr.I tried jsp interest.Hope some one
helps me here.


I am tying to upload a file from jsp page using bean MultiPartRequest class
that come with oreilly examples.

I am using the constructor which takes three parameters 1.request 2. dir 3.
file size

Itz working and it is storing in the dir given by me.

But the file name is default file name which i selected from the browser.
Here the problem is if different users sends the file with same name it is
replacing the old file.

So i want to upload the file selected by the user with the name specifed by
me.

How to do this?
I checked the MultiPartClass constructors it has another constructor wich
take as FileRenamePolicy interface but i didn't understand this. and how to
create this interface using file as parameter?

Can some one help me out how to do this?

Thanks in advance
venkat


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

Reply via email to