Page 1 of 1

help on jsp

Posted: Wed Jul 25, 2007 3:42 am
by aschandra27
hi javaites

i got a problem with jsp forms. i have a form which takes user details along with user picture. if i put them in one form and write its not working. but if i put in two forms. 1 for fileupload and 1 for data storing they are working fine. i need some help on code.

Posted: Wed Jul 25, 2007 3:51 am
by miro_igov
How about adding enctype?

Code: Select all

<form id="form1" name="form1" method="post" action="" enctype="multipart/form-data">
What is javaites?

Posted: Wed Jul 25, 2007 9:25 am
by Chris Corbyn
This is a PHP forum you so probably won't get much JSP help here ;) I also suspect, as the above post suggests, that you have not got your enctype set correctly on your form. Maybe you could post the code?

Re: help on jsp

Posted: Wed Jul 25, 2007 9:31 am
by superdezign
aschandra27 wrote:hi javaites
We're more like... PHP-ers.