Go Back   Velocity Reviews > Newsgroups > Java
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Java - Oreilly upload and java bean

 
Thread Tools Search this Thread
Old 05-20-2004, 12:06 AM   #1
Default Oreilly upload and java bean


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


Lalit
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46