The title might be confusing... the problem is the following:
I'm making a register page for a web site, so i have the usual things like nick, email, name, surname, date of birth, profile image, etc.
As far as i know it's not possible to make only one form to handle files(profile image) and text at the same time, so i had to make two forms, one of them has the profile image and the other form has the rest(all the fields and a button to complete the registration). The problem is that i want the profile image form to be displayed between the date of birth and the finish button(which are both in the other form...).
Oh, a file upload form? Sure, it can contain more fields than just the file. But what kind of guidance are you looking for? You already know how to make a file upload form, you already know how to make a form with several input fields, so it should be easy enough to make a file upload form with several input fields.
Joined: Sep 12, 2012
The problem with this is that in the servlet i do: request.getParameter("someParameter") and it returns null(for my text parameters)... that's because of the enctype="multipart/form-data", if i delete that line all works fine...
Yes, that's true. In this particular case you don't get the parameters like that.
Instead, you get them exactly the same way you get the file upload. All of the parameters should be accessed in the same way.
I have always used the Apache FileUpload product to handle this sort of thing. Unfortunately the only examples I have of it personally are in my work computer and I won't be looking at that until Monday. But at any rate start with the plan of getting the string parameters in the same way as you're already getting the file upload parameter.