This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hello, I am creating an Input form where the user can enter details like say Company detials. Also in that form I want to accept his company logo, ie an image. Now only on one single Submit, I want to send both these details to the servlet. I have a seperate servelt for uploading image and another servelt for accpeting the other Company detials. But as the Image requries multipart encoding...how do i combine both the details and call the respective servlets...on One single SUBMIT button. If not this way..pls suggest some other way of doing it. Thanks.
My own thought is that it is generally bad practice to have a single Form submission handled by more than one servlet.
By saying "I have one 'servlet' to handle image uploads", you mean you have a chunk of java code that handles multi-part file uploads, then make this a simple java class instead, and use it within the other servlet.