I have only used fileupload. One of the problem i faced is when the enctype="multipart/form-data" ,all other input fields values except file can not be processed. Is there any workaround for that.
Originally posted by sunitha raghu: I have only used fileupload. One of the problem i faced is when the enctype="multipart/form-data" ,all other input fields values except file can not be processed. Is there any workaround for that.
Multipart form reading : I've been using import com.oreilly.servlet.*; import com.oreilly.servlet.multipart.*; import com.oreilly.servlet.multipart.MultipartParser; You can download it. ( forgot the url). You're also supposed to buy the book - it will be in the liscense. It's a good book to have even if ya don't use the classes. Peace, jim
Using Jakarta Commons FileUpload you can also process any other input field value in a multipart request. Just use the isFormField() method of the FileItem class. Try this:
I tried that. ie why i asked the que. It wont work.
Originally posted by Juanjo Bazan: Using Jakarta Commons FileUpload you can also process any other input field value in a multipart request. Just use the isFormField() method of the FileItem class. Try this:
there is no exception. since the form type is "multipart" other input values will be null. make two text fields in spite of input type file and check whether u able to get the values of other fields.
Just an outsider question. It seems that there are lots of open projects, each of them has its own FileUpload, or even other similar modules, like logging, etc. In fact, why they do so? They cannot just use the same module, or share their modules to each other? I feel it is too difficult to manage so much technologies that ususally share the same functions. Nick
Originally posted by Nicholas Cheung: Just an outsider question. It seems that there are lots of open projects, each of them has its own FileUpload, or even other similar modules, like logging, etc. In fact, why they do so? They cannot just use the same module, or share their modules to each other? I feel it is too difficult to manage so much technologies that ususally share the same functions. Nick
Thy maven , actually Jakarta libary is the offical lib of our comany. When we need a new function, we will consult whether Jakarta has already solved it.
Originally posted by Lasse Koskela: I believe Mike meant that you should download the source code for Struts and take a look at how the Struts team has solved the problem.
Hi All, I am using the same facility of file upload. The problem is that when I am trying to upload file using my own servlet its working fine, but when I am trying to upload using Struts(struts tags), its giving problem. Its not able to come to Action class either. Can somebody throw light on this
And please post your code that it's have error for more information to solve this problem. [ October 31, 2004: Message edited by: somkiat puisungnoen ]
SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Are you here to take over the surface world? Because this tiny ad will stop you!
a bit of art, as a gift, the permaculture playing cards