[Opensource] remove
Paulo Alvim
alvim at powerlogic.com.br
Tue Nov 19 10:46:54 PST 2002
-----Mensagem original-----
De: opensource-admin at jcorporate.com
[mailto:opensource-admin at jcorporate.com]Em nome de
pshah at adaptivesoftware.biz
Enviada em: terça-feira, 19 de novembro de 2002 9:19
Para: opensource at jcorporate.com
Assunto: [Opensource] problem with using multipart/form-data
Hi,
I am using expresso for an application I am developing. One of the forms
needs to support file update.
I use the struts html:file tag
I also use the Struts Action Servlet
I have set enctype="multipart/form-data"
There is an ActionForm associated with the controller which is called as the
result of the form POST
The ActionForm has an attribute of type FormFile (from Struts) to recieve
the contents of the uploaded file
****************ERROR**********************************
When the form is submitted I get an error message which says
1.The Controller object called
"biz.adaptivesoftware.jms.qm.controller.QMStateMachine" reported a problem.
2.The problem reported was "You must specify a non-blank state. No default
initial state is specified."
3.No error number was specified.
***************************************************
The controller state which gets control when the form is posted is
represented as an empty method. This is becuase I really want control to go
to the JSP page which is mapped against 'forward' for that state. This JSP
page propmts the user with the data they just entered.
If I remove the html:file input in the JSP and also remove enctype in the
form then everything works well (except that my form cannot upload the file
:-)). So the problem seems to occur only when the form encoding is set to
multipart/form-data.
Can anyone help me with what I may be doing wrong.
Thanks in advance
Parag
_______________________________________________
Opensource mailing list
Opensource at jcorporate.com
http://mail.jcorporate.com/mailman/listinfo/opensource
Archives: http://mail.jcorporate.com/pipermail/opensource/
More information about the Opensource
mailing list