07-19-04 07:52 AM
Using Websphere Portal 5 and Struts:
<html:form ... enctype="multipart/form-data">
<html:text property="description"/>
<html:file property="formFile"/>
</html:form>
In the action class, formBean.getFormFile() gets the correct FormFile object
and I can access the file information and contents.
However, formBean.getDescription() is always null.
Also noticed that the HTML generated from the JSP:
<input type="file" name="formFile" value="">
<input type="text" name="PC_7_0_SN_description" value="">
IN a multi-part form submission, it seems that the namespace is not included
in the file upload, but is prefixed to the the description text element.
[ Post a follow-up to this message ]
|