Struts portlet: Cannot access text field values from multipart/form-data forms
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Struts portlet: Cannot access text field values from multipart/form-data forms




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:02 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register