Oreilly upload and java bean

L

Lalit

Hi,

I am running tomcat 5 and have a form as jsp page.

That form has lots of fields and am using oreilly's Multiparser class
to upload a file from that form. For uploading the enctype should be
multipart/form-data and it works fine.

Now in the form I wanted to add a bean which will validate the form
before processing it. I want validation to be done on server side. I
am submitting the form to itself and then calling a bean. The bean
does not run as it should be. The jsp:setProperty tag does not set the
property. After a little testing I found that if I remove enctype it
works fine. So the bottom line is javabean getters and setters methods
do not work if the form has encoding type multipart/form-data.

Is their a way to set encoding type back to multipart/form-data after
I have done validation from the bean of the form and forwarding the
request to a class which actually upload file?

Thanks,
Lalit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top