WebSphere Portal Server - Struts portlet: Cannot access text field values from multipart/form-data forms

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > July 2004 > Struts portlet: Cannot access text field values from multipart/form-data forms





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Struts portlet: Cannot access text field values from multipart/form-data forms

2004-07-19, 2: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.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com