commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fire Velocity <>
Subject Error in getting form values
Date Thu, 14 Jun 2007 10:46:04 GMT

I am using the commons-fileupload-1.2. I am trying to upload a file in a 
portlet and some other attributes of file using html text box.

In the process action of a portlet i am only getting the file and not 
other form values. Here is code .

            <form action="$actionURL" method="POST" 
            <table class="formAnswer" style="width: 100%;">
                    <td colspan="2" width="100%" 
                    <td width="20%" class="emphasise">Folder to Import</td>
                    <td width="80%"><input type="text" id="folderPath" 
size="50" value="" readonly /></td>                   
                    <td width="20%" class="emphasise">Folder to Import</td>
                    <td width="80%"><input type="text" id="folderPath1" 
size="50" value=""/></td>                   
                    <td width="20%" class="emphasise">File to Import</td>
                    <td width="80%"><input type="file" name="psmlFile"></td>
                    <td colspan="2" width="100%">
                    <input type="submit" value="Import"/>

Portlet Code

    DiskFileItemFactory diskFileItemFactory = new DiskFileItemFactory();
            PortletFileUpload portletFileUpload = new 
            try {
                Iterator fileIt  = 

In the itreator, i am only getting the single element

Please Help me .

Regards & thanks
*Vivek Kumar* <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message