Mutipart/form data in request

Hi to All,
I need to get the form bean object values in filter class from the request for doing some validation.
For get request there is no problem to get the data from the request. But for the 'multipart/form-data'
after reading the data in filter class , it is not able to retrieve in the action class. But I am using 'RequestWrapper'
then the normal request datas get losed. I need to get the data from both POST and GET.
Thanks in adavance ..

Sunil,
<u><b>Resstructuring Infocube</b></u>.
With this function, you can fill an InfoCube with requests that have already been loaded into a BW, or into another InfoCube. You can, therefore, create a new InfoCube in BW, and use data that has already been loaded successfully into the PSA or into the IDOCs to fill the new InfoCube.
In the InfoCube tree, choose the InfoCube that you want to fill > right click > Administrate.
Choose Reconstruct > Selection, and, using the selection options, determine the requests that you want to use to reconstruct the InfoCube.
Select the corresponding requests from the list, and choose Reconstruct.
<b>NOTE:</b>
This function is particularly useful, if you are loading deltas, that is, data that you cannot request again from the source system.
Let me know if you need any further clarifications.
Thanks
Ramu
<u></u><u></u><u></u><i></i>

Similar Messages

  • Multipart/form-data using HTTPService, sending a binary file and some text in the same request.

    Hi There,
             I am new to FLEX and also new to writing a client for a web service.
    My question is more about flex (Flash builder 4.5) APIs, what APIs to use.
    I want to access a web service, that's published here.
    https://build.phonegap.com/docs/write_api
    here is the description of webservice
    ===========
    1) I have to do a post on POST https://build.phonegap.com/api/v1/apps
    2) content type has to be "multipart/form-data"
    3) JSON bodies of requests are expected to have the name 'data'
      data will be someting like this
    'data={"title":"API V1 App","package":"com.alunny.apiv1","version":"0.1.0","create_method":"file"}'
    4) include a zip file in the multipart body of your post, with the parameter name 'file'.
    ===========
    I want to make a 'multipart/form-data' Post and send
    one string and one zip file.
    My first question to self was If i send both string + binary data in the body ...
    how will server understand where string end and where zip file starts?
    Then read on W3.org( http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 )
    How is text + binary data can be sent through "multipart/form-data" post requst.
    there has to be some boundries.
    After this I read and example in flex and  tried following it.
    http://codeio.wordpress.com/2010/04/03/5-minutes-on-adobe-flex-mimic-file-upload-for-in-me mory-contents/
    but it doesn't seems to be working for me.
                        public function createNewApp(cb:Function , appFile : File):void
                                  var service:HTTPService = new HTTPService();
                                  service.url = ROOT+"apps";
                                  service.showBusyCursor = true;
                                  service.addEventListener(ResultEvent.RESULT, function(e:ResultEvent):void {
                                            //translate JSON
                                            trace(e.result);
                                            var result:String = e.result.toString();
                                            var data:Object = JSON.parse(result);
                                            cb(data.link);
                                  service.addEventListener(FaultEvent.FAULT, defaultFaultHandler); //todo : allow user to add his own as well
                                  authAndUploadNewApp(service,appFile);
                        private function authAndUploadNewApp(service:HTTPService,appFile : File):void {
                                  var encoder:Base64Encoder = new Base64Encoder();
                                  encoder.encode(username + ":"+password);
                                  service.headers = {Accept:"application/json", Authorization:"Basic " + encoder.toString()};
                                  service.method ="POST";
                                  var boundary:String = UIDUtil.createUID();
                                  service.contentType = "multipart/form-data; boundary=—————————" + boundary;
                                  var stream:FileStream = new FileStream();
                                  stream.open(appFile, FileMode.READ);
                                  var binaryData:ByteArray = new ByteArray();
                                  var fileData : String = new String();
                                  stream.readBytes(binaryData);
                                  stream.close();
                                  fileData = binaryData.readUTFBytes(binaryData.bytesAvailable); // I think this is where I have problem.... how do
                           //how do i converrt this bytearray/stream of data to string and send it in my post request's body - i guess if this step work rest should work..  
                                  var params: String = new String();
                                  var content:String = "—————————" + boundary + "nr";
                                  content += 'Content-Disposition: form-data; name="data";' + '{"title":"ELS test app 2","package":"com.elsapp.captivate","version":"12.3.09","create_method":"file"}' + "nr";
                                  content += "—————————" + boundary + "nr";
                                  content += 'Content-Disposition: form-data; name="file";' + fileData  + "nr";
                                  content += "—————————–" + boundary + "–nr";
                                  service.request = content;
                                  service.send();

    In the past I have used URLVariables with URLRequest and URLLoader to achieve this kind of requirement.
    Check out http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_3 .html which should be useful. My preference has always been to use this style instead of HTTPService objects, giving you a little more control which is what you need here.
    Let me know if you need any more assistance.

  • Http request missing form data 4.5.1

              We occassionally have problem with an Http request not having the form data that was entered. If you hit the back button and resubmit the form everything works fine.
              We have IPlanet webservers and WLS 4.5.1.
              

              We occassionally have problem with an Http request not having the form data that was entered. If you hit the back button and resubmit the form everything works fine.
              We have IPlanet webservers and WLS 4.5.1.
              

  • ALSB 2.5 - routing request containing multipart/form-data

    Hello,
    I'm having difficulty routing a request (multipart/data-form with 2 MIME sections) in a
    business service.
    First, I set up the "attachments" variables in a stage:
    <ctx:attachments>
    <ctx:attachment>
    <ctx:Content-Disposition>form-data; name="RI"; filename="RI"</ctx:Content-Disposition>
    <ctx:Content-Type>text/plain</ctx:Content-Type>
    <ctx:Content-ID>1146702408781_1</ctx:Content-ID>
    <ctx:body>
    <RI/>
    </ctx:body>
    </ctx:attachment>
    <ctx:attachment>
    <ctx:Content-Disposition>form-data; name="CI"; filename="CI"</ctx:Content-Disposition>
    <ctx:Content-Type>text/plain</ctx:Content-Type>
    <ctx:Content-ID>1146702408781_1</ctx:Content-ID>
    <ctx:body>
    <CI/>
    </ctx:body>
    </ctx:attachment>
    </ctx:attachments>
    then do node replacements of <RI/> and <CI/> in each
    <ctx:body> section.
    Then in the routing node,
    "Set Transport Headers" for "Outbound Request"
    [x] Pass all Headers through Pipeline
    Add Header
    [Content-Type] --> [Set Header to "multipart/form-data"]
    Then I used Ethereal (network protocol analyzer) to
    observe the raw packets that business service sent
    the request to the target service. It looked like
    the POST httprequest output by ALSB does not conform to
    the other posting programs that I have wrote in Python
    and Ruby. The target webservice rejects the request
    sent by ALSB, but accepts those sent by the Python/Ruby
    programs.
    Anyone here have any experience in how to set this up?
    Thanks
    Charles

    Hello,
    Make sure you construct the attachment variable properly as specified in the documentation:
    http://e-docs.bea.com/alsb/docs26/userguide/context.html#wp1052039
    Gregory Haardt
    ALSB Prg. Manager
    [email protected]

  • How to get useful data from request?

    Hello.
    I am looking for creating a management tool for a web site. All I want is that is there any ready to use API or package or open source project for retrieving user�s information? I just mean that is there any easy to use way in java to get useful data from a client (for example location, his or her system configuration and information �).
    Thanks.

    If you dump all the data from request (see the javadoc, and especially the "header methods" ) you'll see the data you can get are quite simple.
    The only thing you can try to rely on are ;
    - the IP address from the sender (when reversed to DNS, you can sometime use the tld to locate the country it comes from. Yet, you'll get many .com name, so it's not that significant. it may also give you the IAP used). Note that if the user is using a proxy, it's the proxy IP that you'll collect
    - the User-Agent header : from this, you can guess the OS and the browser used
    - the Referer header : usefull to get where your user comes from (where they found a link to your site)
    - the Cookie header : if you're using a servlet container with session id stored in cookie, you should see the Cookie header appear on the second request to your site. That helps finding out wether your user accep cookie or not (from a server point).
    Besides these, i don't think you can get any other useful data without asking your users on a form. Note that it's the client that decides to send Referer, User-Agent or Cookie headers. Those are not mandatory to the Http Protocole and some browser allow their user to fool their content (butmore than 90% of the widespread browsers don't)

  • Problem with ENCTYPE='multipart/form-data'

    In my program I want to upload a file along with other details.
    I've dowloaded org.apache.commons.fileupload.* jar files and everything works fine only if I give
    <INPUT TYPE='file' NAME='file1'>
    i.e the file is uploaded
    But if I add any other field it becomes blank
    Title : <INPUT id=text1 maxlength="30" name=GHN1 >
    the value of GHN1 becomes blank. what cud be the problem.
    Here is my program
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,java.text.SimpleDateFormat.*,java.text.ParseException.*,java.text.*,java.text.DateFormat.*,java.util.*,java.util.Date.*,com.gh.db.*,org.apache.commons.fileupload.*,org.apache.commons.fileupload.servlet.ServletFileUpload,org.apache.commons.fileupload.disk.DiskFileItemFactory,org.apache.commons.io.FilenameUtils,java.io.*,java.io.File,java.lang.Exception" errorPage="Error.jsp" %>
    <%
    String TACm1="";
    String TASid,Nme="",Cm2="",GHN1="",GHN2="",GHN3="",Sid="";
    TACm1=((request.getParameter("TAIdCombo"))!=null?(request.getParameter("TAIdCombo")):"");
    DBconnection TApool = DBconnection.getInstance();
    Connection con2 = TApool.getConnection();
    con2.setAutoCommit(false);
    Statement TAst1 = con2.createStatement();
    ResultSet TArs1 = null,rs2=null,rs1=null;
    Cm2=((request.getParameter("TMIdCombo2"))!=null?(request.getParameter("TMIdCombo2")):"");
    java.util.Date d1;
    java.sql.Date d2;
    SimpleDateFormat format=new SimpleDateFormat("dd/MM/yyyy");
    %>
    <html>
    <head>
    <TITLE>Guest Houses of DOS</TITLE>
    </head>
    <%@ include file="StdValidations.js" %>
    <%@ page buffer="1094kb"%>
    <script Language="JavaScript">
    </script>
    <body onload="window.history.forward(1);">
    <FORM ENCTYPE='multipart/form-data' name="GHInfoDetails1"
         method='POST' action="GHInfoDetails1.jsp">'<br><br><br>
    <center>
    <%      
         String LoginName= "";
         String Name= "";
         String SectionName= "";
         try
              LoginName = session.getAttribute("LoginName").toString();
              Name = session.getAttribute("Name").toString();
              SectionName = session.getAttribute("SectionName").toString();     
         catch(NullPointerException npe)
              %>
              <jsp:forward page="LoginHere.jsp" >
              <jsp:param name="SessionMode" value="Session Expired try again to log on" />
              </jsp:forward>
              <%
    %>
    <%
              GHN1 = request.getParameter("GHN1");
              if (GHN1 == null) GHN1 = "";
              GHN2 = request.getParameter("GHN2");
              if (GHN2 == null) GHN2 = "";
              GHN3 = request.getParameter("GHN3");
              if (GHN3 == null) GHN3 = "";
    %>
         <table width="100%" bgcolor="#F7EDF7">
              <tr >
              <td align="center">
                   <img src="Images/Title2.gif">
              </td>
              </tr>
              </table>
              <table width="100%" bgcolor="#F7EDF7">
              <tr>
              <td >
                   <b><font face="Times New Roman, Times, serif" color="#402180" size="+1">Logged in as:  <%= Name %></font></b>
              </td>
              <td >
                   <b><font face="Comic Sans MS" color="#402180" size="+1">Other Details of Guest House</font></b>
              </td>
              <td align="right">
                   <b><font face="Times New Roman, Times, serif" color="#402180" size="+1">Logout</font></b>
              </td>
              </tr>
         </table>
              <table width="100%" bgcolor="#B6C7E5" border="1">
              <tr>
              <td valign="top">
              </br>
              <p><img src="Images/bullet.gif"><b><font face="Times New Roman, Times, serif" color="#402180" size="+0">Defining Guest House Information</font></b></p>
              <p><img src="Images/bullet.gif"><b><font face="Times New Roman, Times, serif" color="#402180" size="+0">Cancelling Guest House Information</font></b></p>
              </td>
              <td align="left"></br>
                   <table width="100%" bgcolor="#B6C7E5">
                   <tr>
                                  <td width="60%" align="right"></br>
                                  <P >Category :  <select onChange="TAMAssignCombo2();" name="TMIdCombo2" style="WIDTH: 120px" >
                                                                <option value="-">Select</option>
                                                                <% try
                                                                     PreparedStatement ps6=con2.prepareStatement("Select CategoryName from TableCategory order by CategoryName");
                                                                     rs2 = ps6.executeQuery();     
                                                                     while(rs2.next())
                                                                          Sid=rs2.getString(1);
                                                                               %>
                                                                                    <option value = "<% out.write(Sid); %>"><% out.write(Sid); %></option>
                                                                               <%
                                                                catch(Exception e)
                                                                     e.printStackTrace();
                                                                %>
                                                                     <Script>alert("Exception Occured : <%= e %>");</Script>
                                                                <%
                                                                %>
                                                 </select>
                                  </P>
                   </td>
                   </tr>
                   <tr align="center">
                   <td>
                        Title :     <INPUT id=text1 maxlength="30" name=GHN1 onKeyPress="if (((event.keyCode > 32) && (event.keyCode < 48)) || ((event.keyCode > 57) && (event.keyCode < 65)) || ((event.keyCode > 90) && (event.keyCode < 97))) event.returnValue=false;">
                   </td>
                   </tr>
                   <tr align="center">
                   <td>
                        Reference No :     <INPUT id=text1 maxlength="100" name=GHN2 onKeyPress="if (((event.keyCode > 32) && (event.keyCode < 48)) || ((event.keyCode > 57) && (event.keyCode < 65)) || ((event.keyCode > 90) && (event.keyCode < 97))) event.returnValue=false;">
                   </td>
                   </tr>
                   <tr align="center">
                   <td>
                        Date :     <INPUT id=text1 maxlength="30" name=GHN3 >
                   </td>
                   </tr>
                   <tr align="center">
                   <td >
                   </br>
                                           File Name:        <INPUT TYPE='file' NAME='file1'></p>
                   </td></tr>
                   <tr>
                   <td align="center">
                                                         <INPUT TYPE='submit' VALUE='Submit' ></br>
                   <b><font face="Times New Roman, Times, serif" color="#402180" size="3">(Information like distance,direction from central places such as Railway station, Airport, Bus Terminal....etc can be added in a file of windows format(such as word, pdf...) and can be uploaded through this screen. This will be displayed for the ISRO Guests.</font></b>)
                   </td>
                   </tr>
                   </table>
              </td>
              </tr>
              </table>
              <table width="100%" bgcolor="#B6C7E5">
              <tr>
              <td align="center">
                   </br>
                   <img src="Images/Home.jpg">
              </td>
              </tr>
              </table>     
    <% if (ServletFileUpload.isMultipartContent(request))
         GHN1 = request.getParameter("GHN1");
         if (GHN1 == null) GHN1 = "";
         GHN2 = request.getParameter("GHN2");
         if (GHN2 == null) GHN2 = "";
         GHN3 = request.getParameter("GHN3");
         if (GHN3 == null) GHN3 = "";
         DiskFileUpload fileUpload = new DiskFileUpload();
         List list = null;
         try
              list = fileUpload.parseRequest(request);
         catch(FileUploadException ex)
              throw new ServletException("Wrapped",ex);
         Iterator iter = list.iterator();
         while (iter.hasNext())
         FileItem item = (FileItem) iter.next();
         if (!item.isFormField())
              File itemFile = new File(item.getName());
              Nme=itemFile.getName();
              %>
              <%
              File destDir = new File(getServletContext().getRealPath("/")
                                       +"stored");
         if(!destDir.exists())
              destDir.mkdirs();
         File destFile = new File(getServletContext().getRealPath("/")
                                       +"stored"+File.separator+itemFile.getName());
         try
              item.write(destFile);
         catch(Exception ex)
              //throw new ServletException("Wrapped",ex);
         TACm1=SectionName;
         %><script>alert("<%=GHN1%>");</script><%
         try
              PreparedStatement ps26=     con2.prepareStatement("select CategoryNo from TableCategory where CategoryName=?");
              ps26.setString(1,Cm2);
              rs1=ps26.executeQuery();
              while (rs1.next())
                   PreparedStatement ps16=con2.prepareStatement("inset into TableMetaData (CategoryNo,Title,RefernceNo,Date,FileName) values(?,?,?,?,?)");
                   ps16.setString(1,rs1.getString(1));
                   ps16.setString(2,GHN1);
                   ps16.setString(3,GHN2);
                   d1=format.parse(GHN3);
                   d2=new java.sql.Date(d1.getTime());     
                   ps16.setDate(4,d2);
                   ps16.setString(5,Nme);
                   int NoOfRows=ps16.executeUpdate();
                   con2.commit();
         catch(Exception e)
              e.printStackTrace();
         %>
                             <script> alert("Error : <%= e %>"); </script>
         <%
    %>
    <%
              if (TAst1 != null) TAst1.close();
                                  if (con2 != null)
                                       con2.rollback();
                                       con2.setAutoCommit(true);
                                       TApool.returnConnection(con2);
              %>
    <input name="HomePage" type="hidden">
    </form>
    </body>
    </html>

    This article is worth reading: http://balusc.blogspot.com/2007/11/multipartfilter.html

  • Problem with transfering unicode form data in MULTIPART/FORM-DATA

    HI experts,
    I have this web based multilingual application. Page 1(form6.jsp) is basic registeration form with 5 fields and one image upload to the server. Page 2(verify.jsp) is another jsp page for verification of UTF data entered in page 1.
    page 2 (verify.jsp) also uses a bean called (verify.java) for picking up values. page 3(insertEntry.jsp) is the page for inserting that data into the Database and uses a bean called (logicbean.java).
    Now, the problem im facing here is that if i use multipart/form-data, the unicode text filled in page1 is shown as garbage when its is transfered to page2 and displayed on page2. It is all gibberish. But if i do not use multipart/form-data, the unicode text transfered from page1 to page2 is displayed perfectly on page2.Im using devenagari(UTF) language for filling in details.
    // form6.jsp
    <%@ page language="java" pageEncoding="UTF-8"%>
    <%@ page import="java.util.*,java.text.*" %>
    <%@ page import="com.oreilly.servlet.*" %>
    <%
    request.setCharacterEncoding("UTF-8");
    %>
    <HTML>
    <HEAD>
    <TITLE>
    <%=session.getValue("main.title")%>
    </TITLE>
    </HEAD>
    <h1><center><%=session.getValue("main.head")%><Center>
    <BODY background="brown.bmp">
    <form name=form6 action="verify.jsp" method="post" enctype="multipart/form-data">
    <center>
    <font>
    <table border=1>
    <tr>
    <td colspan=2><center><img src="asok.bmp"></center>
    </tr>
    <tr>
    <td >
    <b>1.)<%=session.getValue("main.ec")%></b>
    </td>
    <td></td>
    </tr>
    <tr>
    <td align="right"><b><%=session.getValue("main.ecname")%></b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="votername"></td>
    <td></td>
    </tr>
    <tr>
    <td align="right"> <b><%=session.getValue("main.ecsurname")%></b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="votersurname"></td>
    <td></td>
    </tr>
    <tr>
    <td align="left"><b>2.)<%=session.getValue("main.rel")%></b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
    <select name="relation" onchange="if(this.selectedIndex!=0){this.form.texthiddenrelation.value=this.options[this.selectedIndex].value}" size="1">
                                       <option>Choose</option>
    <option value="father">Father</option>
    <option value="mother">Mother</option>
    <option value="husband">Husband</option>
    </select>
    <input type="hidden" name="texthiddenrelation" />
    </td>
    </tr>
    <tr>
    <td align="right"><b><%=session.getValue("main.relname")%></b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="parentname">
    <td></td>
    </tr>
    <tr>
    <td align="right"><b><%=session.getValue("main.relsurname")%>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</b><input type="text" name="parentsurname">
    <td></td>
    </tr>
    <tr>
    <td align="right"><b>3.)<%=session.getValue("main.sex")%></b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
    <select name="sex" onchange="if(this.selectedIndex!=0){this.form.texthiddensex.value=this.options[this.selectedIndex].value}" size="1">
                                            <option>Choose</option>
                                            <option value="male">Male</option>
    <option value="female">Female</option>
    <option value="other">Other</option>
    </select>
    <input type="hidden" name="texthiddensex" /> </td>
    <td align="right"><b><%=session.getValue("form6.image")%><input type ="file" name=pic1 onchange={this.form.pic.value=this.form.pic1.value}><input type= hidden name=pic> </b></td>
    </tr>
    <tr>
    <td colspan=2><b>4.)<%=session.getValue("main.age")%></b><input type="text" name="age">
    </td>
    </tr>
    <tr>
    <td><b>5.)<%=session.getValue("main.dob")%></b>
    <td><b><%=session.getValue("main.dobday")%></b> <select name="cmbday">
    <option value="1"> 1 </option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">10</option>
    <option value="10">11</option>
    <option value="11">12</option>
    <option value="12">13</option>
    <option value="13">14</option>
    <option value="14">15</option>
    <option value="15">16</option>
    <option value="16">17</option>
    <option value="17">18</option>
    <option value="18">19</option>
    <option value="19">20</option>
    <option value="20">21</option>
    <option value="21">22</option>
    <option value="22">23</option>
    <option value="23">24</option>
    <option value="24">25</option>
    <option value="25">26</option>
    <option value="26">27</option>
    <option value="28">28</option>
    <option value="29">29</option>
    <option value="30">30</option>
    <option value="31">31</option>
    </select>
    <b><%=session.getValue("main.dobmonth")%></b><select name="cmbmonth">
    <option value="jan">JAN</option>
    <option value="feb">FEB</option>
    <option value="mar">MAR</option>
    <option value="apr">APR</option>
    <option value="may">MAY</option>
    <option value="jun">JUN</option>
    <option value="jul">JUL</option>
    <option value="aug">AUG</option>
    <option value="sep">SEPT</option>
    <option value="oct">OCT</option>
    <option value="nov">NOV</option>
    <option value="dec">DEC</option>
    </select>
    <b><%=session.getValue("main.dobyear")%></b> <select name="cmbyear" onchange="if(this.form.cmbday.selectedIndex!=0 && this.form.cmbmonth.selectedIndex!=0 && this.form.cmbyear.selectedIndex!=0){this.form.mergedage.value=this.form.cmbday.options[this.form.cmbday.selectedIndex].value +' '+this.form.cmbmonth.options[this.form.cmbmonth.selectedIndex].text +' '+ this.form.cmbyear.options[this.form.cmbmonth.selectedIndex].value}" size="1">
    <option value="1970">1970</option>
    <option value="1971">1971</option>
    <option value="1972">1972</option>
    <option value="1973">1973</option>
    <option value="1974">1974</option>
    <option value="1975">1975</option>
    <option value="1976">1976</option>
    <option value="1977">1977</option>
    <option value="1978">1978</option>
    <option value="1979">1979</option>
    <option value="1980">1980</option>
    <option value="1981">1981</option>
    <option value="1982">1982</option>
    <option value="1983">1983</option>
    <option value="1984">1984</option>
    <option value="1985">1985</option>
    <option value="1986">1986</option>
    <option value="1987">1987</option>
    <option value="1988">1988</option>
    <option value="1989">1989</option>
    <option value="1990">1990</option>
    <option>
    </select>
    <input type="hidden" name="mergedage">
    </tr>
    <tr>
    <td colspan=2><b>6.)<%=session.getValue("main.add")%></b>
    </tr>
    <tr>
    <td align="right"><b><%=session.getValue("main.addline1")%></b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="address1" value=""></td>
    <td><b><%=session.getValue("main.addstate")%></b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="state"></td>
    </tr>
    <tr>
    <td align="right"><b><%=session.getValue("main.addline2")%></b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="address2" onChange="this.form.finaladdress.value=this.form.address1.value + ';' + this.value;"> <input type="hidden" name="finaladdress"> </td>
    <td><b><%=session.getValue("main.addcity")%>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</b><input type="text" name="city"></td>
    </tr>
    <tr>
    <td align="right"> <b><%=session.getValue("main.addpin")%></b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="pincode">
    <td></td>
    </tr>
    <tr>
    <td ><b>7.)<%=session.getValue("main.const")%></b> <input type="text" name="constituency">
    <td ><b>8.)<%=session.getValue("main.id")%></b> &nbsp&nbsp<input type="text" name="refno">
    </tr>
    <tr>
    <td colspan="2"><center><input type="reset" name="reset" value="<%=session.getValue("button.reset")%>">&nbsp&nbsp<input type=submit name=Submit value="<%=session.getValue("button.submit")%>"></center></td>
    </tr>
    <tr>
    <td>
    </td>
    </tr>
    </form>
    </font>
    </BODY>
    </HTML>
    // verify.jsp
    <%@ page language="java" pageEncoding="UTF-8"%>
    <jsp:useBean id="verify" class="pack.verify" scope="request"/>
    <%@ page import="com.oreilly.servlet.*" %>
    <%@ page import="java.util.*,java.text.*" %>
    <%!
    MultipartRequest mp;
    // ParameterParser pp;
    %>
    <!-- Perform the actions on the bean. -->
    <%
    //pp.setCharacterEncoding("utf-8");
    %>
    <%
    try
    mp = new MultipartRequest(request, "d:/Files");
    out.println("DONE");
    /* Set the request object.*/
    /* The request object is implicitly available in the JSP page.*/
    verify.setRequest(mp);
    /* Insert the employee data into the database.*/
    verify.verifyEntry();
    //verify.setscope();
    /* Run the query to retrieve the employee data from the database.*/
    //logicbean.runQuery();
    catch (Exception e)
    System.out.println(e.getMessage());
    %>
    <HTML>
    <HEAD>
    <LINK href="theme/Master.css" rel="stylesheet" type="text/css">
    <TITLE>
    </TITLE>
    </HEAD>
    <BODY background="brown.bmp">
    <form name=form6 action="insertEntry.jsp" method="POST">
    <center>
    <table border=3>
    <tr>
    <td colspan=2><center><img src="asok.bmp"></center>
    </tr>
    <tr>
    <td >
    <b>1.)<%=session.getValue("main.ec")%></b>
    </td>
    <td rowspan=3>
    <image src="<%=verify.getpic()%>" width="85" hieght="85">
    </td>
    </tr>
    <tr>
    <td > &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<b><%=session.getValue("main.ecname")%></b> <%=verify.getvotername()%>&nbsp&nbsp<input type="hidden" value= "<%=verify.getvotername()%>" name="votername"></td>
    </tr>
    <tr >
    <td> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<b><%=session.getValue("main.ecsurname")%></b><%=verify.getvotersurname()%>
    <input type="hidden" value= "<%=verify.getvotersurname()%>" name="votersurname"></td>
    </tr>
    <tr>
    <td ><b>2.)<%=session.getValue("main.rel")%></b><input type="hidden" value= "<%=verify.getvoterrelation()%>" name="texthiddenrelation"></td>
    <td><%=verify.getvoterrelation()%></td>
    </tr>
    <tr>
    <td >&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<b><%=session.getValue("main.relname")%></b>&nbsp&nbsp&nbsp <input type="hidden" value= "<%=verify.getparentname()%>" name="parentname"></td>
    <td><%=verify.getparentname()%></td>
    </tr>
    <tr>
    <td >&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<b><%=session.getValue("main.relsurname")%></b><input type="hidden" value= "<%=verify.getparentsurname()%>" name="parentsurname"></td>
    <td><%=verify.getparentsurname()%></td>
    </tr>
    <tr>
    <td><b>3.)<%=session.getValue("main.sex")%></b><input type="hidden" value= "<%=verify.getsex()%>" name="texthiddensex"></td>
    <td><%=verify.getsex()%></td>
    </tr>
    <tr>
    <td ><b>4.)<%=session.getValue("main.age")%></B><input type="hidden" value= "<%=verify.getage()%>" name="age"></td>
    <td><%=verify.getage()%></td>
    </tr>
    <tr>
    <td><b>5.)<%=session.getValue("main.dob")%></b> <input type="hidden" value= "<%=verify.getdob()%>" name="mergedage"></td>
    <td> <%=verify.getdob()%></td>
    </tr>
    <tr>
    <td colspan=2><b>
    6.)<b><%=session.getValue("main.add")%></b></td>
    </tr>
    <tr>
    <td> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<b><%=session.getValue("verify.add")%></b><input type="hidden" value= "<%=verify.getadderess()%>" name="finaladdress"> </td>
    <td><%=verify.getadderess()%></td>
    </tr>
    <tr>
    <td >&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<b><%=session.getValue("main.addpin")%></b><input type="hidden" value= "<%=verify.getpin()%>" name="pincode"></td>
    <td><%=verify.getpin()%></td>
    </tr>
    <tr>
    <td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<b><%=session.getValue("main.addstate")%></b><input type="hidden" value= "<%=verify.getstate()%>" name="state"></td>
    <td><%=verify.getstate()%></td>
    </tr>
    <tr>
    <td><b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<%=session.getValue("main.addcity")%></b><input type="hidden" value= "<%=verify.getcity()%>" name="city"></td>
    <td><%=verify.getcity()%></td>
    </tr>
    <tr>
    <td><b>7.)<%=session.getValue("main.const")%></b> <input type="hidden" value= "<%=verify.getconst()%>" name="constituency"></td>
    <td><%=verify.getconst()%></td>
    </tr>
    <tr>
    <td><b>8.)<%=session.getValue("main.id")%></b> <input type="hidden" value= "<%=verify.getrefno()%>" name="refno"></td>
    <td><%=verify.getrefno()%></td>
    </tr>
    <tr>
    <td colspan="2"><center><INPUT TYPE="button" VALUE="<%=session.getValue("ie.back")%>" onClick="history.go(-1)">
    <input type=submit name=Submit value="<%=session.getValue("button.submit")%>"></center><input type="hidden" value= "<%=verify.getpic()%>" name="pic"></td>
    </tr>
    </form>
    </BODY>
    </HTML>
    //verify.java
    package pack;
    import java.lang.*;
    import java.sql.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.oreilly.servlet.*;
    import com.oreilly.servlet.ParameterParser.*;
    * @author Administrator
    * To change this generated comment edit the template variable "typecomment":
    * Window>Preferences>Java>Templates.
    * To enable and disable the creation of type comments go to
    * Window>Preferences>Java>Code Generation.
    public class verify {
    String votername = "";
    String votersurname = "";
    String texthiddenrelation="";
    String parentname = "";
    String parentsurname = "";
    String gender = "";
    String texthiddensex="";
    String age = "";
    String dob = "";
    String mergedage="";
    String address = "";
    String finaladdress="";
    String pincode = "";
    String state = "";
    String city = "";
    String constituency = "";
    String refno = "";
    MultipartRequest request = null;
    Connection dbConn = null;
    ParameterParser pp;
    private String voternameParam;
    * Set the request object. This is used for getting parameters.
    public void setRequest(MultipartRequest request)
    this.request = request;
    public void verifyEntry()
    throws Exception
    /* Connect to the database.*/
    //pp.setCharacterEncoding("utf-8");
    //String nameParam = request.getParameter("name");
    MultipartRequest mp;
    System.out.println("connected to db2 through insertemployee");
    /* Get all the parameters from the calling HTML form.*/
    String voternameParam = request.getParameter("votername");
    System.out.println("the votername is " + request.getParameter("votername"));
    System.out.println(voternameParam);
    String votersurnameParam = request.getParameter("votersurname");
    System.out.println("the votersurname is " + request.getParameter("votersurname"));
    String hiddenrelationParam = request.getParameter("texthiddenrelation");
    System.out.println("the relation is " + request.getParameter("texthiddenrelation"));
    String parentnameParam = request.getParameter("parentname");
    System.out.println("the parentname is " + request.getParameter("parentname"));
    String parentsurnameParam = request.getParameter("parentsurname");
    System.out.println("the parentsurname is " + request.getParameter("parentsurname"));
    String ageParam = request.getParameter("age");
    System.out.println("the age is " + request.getParameter("age"));
    String mergedageParam = request.getParameter("mergedage");
    System.out.println("the mergedage is " + request.getParameter("mergedage"));
    String hiddensexParam = request.getParameter("texthiddensex");
    System.out.println("the hiddensex is " + request.getParameter("texthiddensex"));
    //String dobParam = request.getParameter("dob");
    //System.out.println("the dob is " + request.getParameter("dob"));
    String finaladdressParam = request.getParameter("finaladdress");
    System.out.println("the finaladdress is " + request.getParameter("finaladdress"));
    String pincodeParam = request.getParameter("pincode");
    System.out.println("the pincode is " + request.getParameter("pincode"));
    String stateParam = request.getParameter("state");
    System.out.println("the state is " + request.getParameter("state"));
    String cityParam = request.getParameter("city");
    System.out.println("the city is " + request.getParameter("city"));
    String constituencyParam = request.getParameter("constituency");
    System.out.println("the constituency is " + request.getParameter("constituency"));
    String refnoParam = request.getParameter("refno");
    System.out.println("the refno is " + request.getParameter("refno"));
    System.out.println("encoding = " + System.getProperty("file.encoding"));
    public String getvotername()
    return request.getParameter("votername");
    public String getvotersurname()
    return request.getParameter("votersurname");
    public String getvoterrelation()
    return request.getParameter("texthiddenrelation");
    public String getparentname()
    return request.getParameter("parentname");
    public String getparentsurname()
    return request.getParameter("parentsurname");
    public String getage()
    return request.getParameter("age");
    public String getsex()
    return request.getParameter("texthiddensex");
    public String getadderess()
    return request.getParameter("finaladdress");
    public String getpin()
    return request.getParameter("pincode");
    public String getstate()
    return request.getParameter("state");
    public String getcity()
    return request.getParameter("city");
    public String getconst()
    return request.getParameter("constituency");
    public String getrefno()
    return request.getParameter("refno");
    public String getdob()
    return request.getParameter("mergedage");
    public String getpic()
    //String a=request.getParameter("pic");
    //a=a.substring(a.lastIndexOf("/")+1);
    //System.out.print("Java path is "+a);     
    //Enumeration enum=request.getFileNames();
    //while(enum.hasMoreElements())
    //     String abc=(String)enum.nextElement();
    //     System.out.print("Java the path is "+abc);     
    return request.getParameter("pic");
    String votername1;
    //public void setScope()
    //request.setAttribute("votername1" ,voternameParam );
    //insertEntry.jsp
    <jsp:useBean id="logicbean" class="pack.logicbean" scope="request"/>
    <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
    <%@ page import="java.util.*,java.text.*" %>
    <%@ page import="com.oreilly.servlet.*" %>
    <%
    request.setCharacterEncoding("UTF-8");
    %>
    <!-- Perform the actions on the bean. -->
    <%
    request.setCharacterEncoding("UTF-8");
    %>
    <%
    try
    /* Set the request object.*/
    /* The request object is implicitly available in the JSP page.*/
    logicbean.setRequest(request);
    //MultiPartRequest mp=MultiPartRequest(request,"E:\Files");
    /* Insert the employee data into the database.*/
    logicbean.insertEntry();
    /* Run the query to retrieve the employee data from the database.*/
    //logicbean.runQueryInsert();
    catch (Exception e)
    System.out.println(e.getMessage());
    %>
    <HTML>
    <HEAD>
    <TITLE>
    Insert Record
    </TITLE>
    </HEAD>
    <BODY background="brown.bmp">
    <center><H2><%=session.getValue("ie.label")%>
    </H2>
    <font face = "Devanagari MT for IBM" size = +2>
    <b><%=session.getValue("ie.sd")%>|<%=session.getValue("ie.home")%></b>
    </font>
    </center>
    </BODY>
    </HTML>
    I have narrowed down the problem to the point where i understand that the "request.getParameter()" function for multipart is not able to understand or read UTF data properly. The out.println prints garbage from this function on the console. im using WAS
    plz help
    thanx in advance
    caffaine

    hi,
    To solve your problem Servlet Filters
    FILTER PROGRAM
    ===============
    package filters;
    import java.io.IOException;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.UnavailableException;
    public class SetCharacterEncodingFilter implements Filter {
    // ----------------------------------------------------- Instance Variables
    * The default character encoding to set for requests that pass through
    * this filter.
    protected String encoding = null;
    * The filter configuration object we are associated with. If this value
    * is null, this filter instance is not currently configured.
    protected FilterConfig filterConfig = null;
    * Should a character encoding specified by the client be ignored?
    protected boolean ignore = true;
    // --------------------------------------------------------- Public Methods
    * Take this filter out of service.
    public void destroy() {
    this.encoding = null;
    this.filterConfig = null;
    * Select and set (if specified) the character encoding to be used to
    * interpret request parameters for this request.
    * @param request The servlet request we are processing
    * @param result The servlet response we are creating
    * @param chain The filter chain we are processing
    * @exception IOException if an input/output error occurs
    * @exception ServletException if a servlet error occurs
    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain)
         throws IOException, ServletException {
    // Conditionally select and set the character encoding to be used
    if (ignore || (request.getCharacterEncoding() == null)) {
    String encoding = selectEncoding(request);
    if (encoding != null)
    request.setCharacterEncoding(encoding);
         // Pass control on to the next filter
    chain.doFilter(request, response);
    * Place this filter into service.
    * @param filterConfig The filter configuration object
    public void init(FilterConfig filterConfig) throws ServletException {
         this.filterConfig = filterConfig;
    this.encoding = filterConfig.getInitParameter("encoding");
    String value = filterConfig.getInitParameter("ignore");
    if (value == null)
    this.ignore = true;
    else if (value.equalsIgnoreCase("true"))
    this.ignore = true;
    else if (value.equalsIgnoreCase("yes"))
    this.ignore = true;
    else
    this.ignore = false;
    // ------------------------------------------------------ Protected Methods
    * Select an appropriate character encoding to be used, based on the
    * characteristics of the current request and/or filter initialization
    * parameters. If no character encoding should be set, return
    * <code>null</code>.
    * <p>
    * The default implementation unconditionally returns the value configured
    * by the <strong>encoding</strong> initialization parameter for this
    * filter.
    * @param request The servlet request we are processing
    protected String selectEncoding(ServletRequest request) {
    return (this.encoding);
    web-xml entry
    +++++++++++
    <filter>     
         <filter-name>Set Character Encoding</filter-name>
    <filter-class>filters.SetCharacterEncodingFilter</filter-class>
              <init-param>
    <param-name>encoding</param-name>
    <param-value>UTF-8</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>Set Character Encoding</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>

  • How to properly order form data?

    I have a form to collect data for a price quote (printing & direct mail).  When I convert the collected data to a .CSV file, the data is not in the same order.  How do i tell my form to postback data in the same order?
    Here is the code (this site would not allow me to attach the files, for whatever reason)
    quote.html . . . the quote form
    <script language=JavaScript>
    function checkform(what){
        if (what.Company_Name.value==''){ alert('You must provide your company name.'); return false;}
        else if (what.Contact_Name.value==''){ alert('You must provide your contact name.'); return false;}
        else if (what.Contact_Email.value==''){ alert('You must provide your e-mail address.'); return false;}
        else{ return true; }
    </script>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML>
    <SCRIPT language=JavaScript src="file:///C|/Documents and Settings/michael/Desktop/images/franklin_java.js"></SCRIPT>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1" />
    <META content=2.0 name=Version />
    <META content="MSHTML 6.00.2600.0" name=GENERATOR />
    <script type="text/JavaScript">
    <!--
    </HEAD>
    <BODY bgColor=#3c4676 text=#000000 link=#000000 vLink=#000000 aLink=#000000
    leftMargin=0 topMargin=0
    marginwidth="0" >
    <!-- InstanceBeginEditable name="EditRegion5" --><script language=JavaScript>
    function checkform(what){
        if (what.Company_Name.value==''){ alert('You must provide your company name.'); return false;}
        else if (what.Contact_Name.value==''){ alert('You must provide your contact name.'); return false;}
        else if (what.Contact_Email.value==''){ alert('You must provide your e-mail address.'); return false;}
        else{ return true; }
    </script>
    <style type="text/css">
    <!--
    .style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; }
    .style4 {font-size: small}
    .style7 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; font-weight: bold; }
    .style12 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; color: #000000; }
    body {
        background-color: #006666;
    .style13 {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-weight: bold;
        font-size: 14px;
    body,td,th {
        font-size: 10px;
    .style15 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
    .style16 {
        color: #000000
    -->
    </style>
    <form method="post" onSubmit="return checkform(this)" action="aspform.asp">
    <INPUT TYPE=HIDDEN NAME="to" VALUE="[email protected]">
    <INPUT TYPE=HIDDEN NAME="subject" VALUE="Franklin Request a Quote Form">
    <INPUT TYPE=HIDDEN NAME="print_blank_fields" VALUE="1"><br><br>
    <table width = "800" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
    </tr>
    <tr>
    <td width="125" align="right" ><span class="style12">Company Name:</span></td>
    <td><INPUT NAME="Company_Name" TYPE="text" VALUE="" SIZE=30 MAXLENGTH=50></td>
    </tr>
    <tr>
    <td width="125" align="right" ><span class="style12">Contact Name:</span></td>
    <td><INPUT NAME="Contact_Name" TYPE="text" VALUE="" SIZE=30 MAXLENGTH=50></td>
    </tr>
    <tr>
    <td width="125" align="right" ><span class="style12">Contact Email:</span></td>
    <td><INPUT NAME="Contact_Email" TYPE="text" VALUE="" SIZE=30 MAXLENGTH=50></td>
    </tr>
    </table>
    <table width = "800" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
    <td width  = "125" align="right"><span class="style3">Date estimate needed:</span></td>
    <td width="112"><select name="Date_estimate_needed" size="1">
    <option value="">:: Month ::</option>
    <option value="JAN">JAN</option>
    <option value="FEB">FEB</option>
    <option value="MARCH">MARCH</option>
    <option value="APRIL">APRIL</option>
    <option value="MAY">MAY</option>
    <option value="JUNE">JUNE</option>
    <option value="JULY">JULY</option>
    <option value="AUG">AUG</option>
    <option value="SEPT">SEPT</option>
    <option value="OCT">OCT</option>
    <option value="NOV">NOV</option>
    <option value="DEC">DEC</option>
    </select></td>
    <td width="95"><select name="Date_estimate_needed" size="1">
    <option value="">:: Date ::</option>
    <option value="01">01</option>
    <option value="02">02</option>
    <option value="03">03</option>
    <option value="04">04</option>
    <option value="05">05</option>
    <option value="06">06</option>
    <option value="07">07</option>
    <option value="08">08</option>
    <option value="09">09</option>
    <option value="10">10</option>
    <option value="11">11</option>
    <option value="12">12</option>
    <option value="13">13</option>
    <option value="14">14</option>
    <option value="15">15</option>
    <option value="16">16</option>
    <option value="17">17</option>
    <option value="18">18</option>
    <option value="19">19</option>
    <option value="20">20</option>
    <option value="21">21</option>
    <option value="22">22</option>
    <option value="23">23</option>
    <option value="24">24</option>
    <option value="25">25</option>
    <option value="26">26</option>
    <option value="27">27</option>
    <option value="28">28</option>
    <option value="29">29</option>
    <option value="30">30</option>
    <option value="31">31</option>
    </select></td>
    <td width="447"><select name="Date_estimate_needed" size="1">
    <option value="">:: Year ::</option>
    <option value="2009">2009</option>
    <option value="2010">2010</option>
    </select></td>
    </tr>
    </table>
    <table width="800" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF">
      <tr>
        <td width = "162" align="right" valign="top"><span class="style4"></span></td>
        <td width="525"> </td>
      </tr>
      <tr>
        <td align="right" valign="top"><span class="style4"></span><span class="style3">Please Select Product Type(s):</span></td>
        <td><span class="style3">
          <input type="checkbox" name="Self Mailer" id="Self Mailer">
          <label for="Self Mailer">Self Mailer</label>
          <label>
          <input type="checkbox" name="Postcard" id="Postcard">
    Postcard</label>
          <label>
          <input type="checkbox" name="Booklet" id="Booklet">
    Booklet</label>
        </span>
          <p class="style3">
            <label></label>
            <label>
    <input type="checkbox" name="Envelope" id="Envelope">
    Envelope</label>
            <label>
    <input type="checkbox" name="Invitation" id="Invtiation">
    Invitation</label>
    <label>
    <input type="checkbox" name="Other" id="Other">
    Other</label>
    </p>
          <p class="style3">
            <label></label>
          </p>      </td>
      </tr>
      <tr>
        <td align="right" valign="top"><span class="style3">Number of Versions</span></td>
        <td><table width="507">
          <tr>
            <td width="499"><label>
              <span class="style15">
              <input type="radio" name="RadioGroup1" value="1" id="RadioGroup1_0">
              1
              <input type="radio" name="RadioGroup1" value="2" id="RadioGroup1_1">
    2
    <input type="radio" name="RadioGroup1" value="3" id="RadioGroup1_2">
    3
    <input type="radio" name="RadioGroup1" value="4" id="RadioGroup1_3">
    4
    <input type="radio" name="RadioGroup1" value="5" id="RadioGroup1_4">
    5
    <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_5">
              </span><span class="style3">Other
    - Specify</span>
    <input name="Specify" type="text" id="Specify" size="5" maxlength="3">
    </label></td>
          </tr>
        </table>     
          <p class="style3">Are the version Quantities the same?
            <label>
            <input type="radio" name="RadioGroup3" value="Yes" id="RadioGroup3_0">
    Yes</label>
            <input type="radio" name="RadioGroup3" value="No" id="RadioGroup3_1">
            No<br>
            <label></label>
    </p>
          <p>
            <label></label>
            <br>
          </p></td>
      </tr>
      <tr>
        <td width="162" align="right" ><span class="style3">Total Quantity:</span></td>
        <td><input name="Quantity" type="text" value="" size=30 maxlength=50></td>
      </tr>
      <tr>
        <td width="162" align="right" -><span class="style3">Flat Size:</span></td>
        <td><input name="Flat_Size" type="text" value="" size=30 maxlength=50></td>
      </tr>
      <tr>
        <td width="162" align="right" -><span class="style3">Finished/Folded Size:</span></td>
        <td><input name="Finished/Folded_Size:" type="text" value="" size=30 maxlength=50></td>
      </tr>
      <tr>
        <td width="162" align="right" -><span class="style3">Number of Pages:</span></td>
        <td><INPUT NAME="Number_of_Pages" TYPE="text" VALUE="" SIZE=30 MAXLENGTH=50></td>
    </tr>
    <tr>
    <td><div align="right"><span class="style3">Envelope Size #1:</span></div></td>
    <td><label>
      <input type="text" name="textfield" id="textfield">
    </label></td>
    </tr>
    <tr>
      <td><div align="right"><span class="style3">Envelope Size #2:</span></div></td>
      <td><input type="text" name="textfield2" id="textfield2"></td>
    </tr>
    <tr>
      <td><div align="right"><span class="style3">If Booklet</span></div></td>
      <td><table width="351">
        <tr>
          <td valign="middle"><label>
            <span class="style3">
            <input type="radio" name="RadioGroup2" value="Self-Cover" id="RadioGroup2_0">
            Self-Cover</span></label>        <span class="style3">
            <label>
            <input type="radio" name="RadioGroup2" value="Plus Cover" id="RadioGroup2_1">
            Plus Cover</label>
            </span>        <label></label></td>
        </tr>
      </table>  </td>
    </tr>
    </table>
    <table width = "800" border = "0" align="center" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
    <td width = "125" align="right" valign="top"><span class="style3">Size Notes:</span></td>
    <td><TEXTAREA cols=23 name="Size_Notes" rows=4 wrap=virtual></TEXTAREA></td>
    </tr>
    </table>
    <table width = "800" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
    <tr>
    <td width = "125" align="right" ><span class="style3">Proof Required:</span></td>
    <td colspan="4"><select name="Proof_Required" size="1">
    <option value="">:: Select One ::</option>
    <option value="Laser">Laser</option>
    <option value="Color_Laser">Color Laser</option>
    <option value="Epson_(relative color match)">Epson (relative color match)</option>
    <option value="Digital_Matchprint_(exact color match)">Digital Matchprint (exact color match)</option>
    <option value="PDF">PDF</option>
    </select></td>
    </tr>
    <tr>
      <td colspan="5" align="right" ><div align="left">
        <blockquote>
          <p><span class="style7">Paper Specs:</span></p>
        </blockquote>
      </div></td>
      </tr>
    </table>
    <table width = "800" border = "0" align="center" cellpadding = "2" cellspacing="2" bgcolor="#FFFFFF">
      <tr>
        <td width = "125" align="right"><span class="style3">Paper:</span></td>
        <td width="88" align="center"><span class="style3">Color</span></td>
        <td width="84" align="center"><span class="style3">Weight</span></td>
        <td width="84" align="center"><span class="style3">Type</span></td>
        <td width="556" align="center"><div align="left"><span class="style3">Finish</span></div></td>
      </tr>
      <tr>
        <td align="right" class="style3">Self Mailer:</td>
        <td align="center"><div align="left">
          <input name="Postcard Color2" type="text" id="Self Mailer" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
          <input name="Postcard Weight2" type="text" id="Self Mailer Weight" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
          <input name="Postcard Type" type="text" id="Self Mailer Type" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
          <input name="Postcard Finish2" type="text" id="Self Mailer Finish" size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right" class="style3">Postcard:</td>
        <td align="center"><div align="left">
            <input name="Postcard Color" type="text" id="Postcard Color" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
            <input name="Postcard Weight" type="text" id="Postcard Weight" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
            <input name="Postcard Type Weight" type="text" id="Postcard Type" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
            <input name="Postcard Finish" type="text" id="Postcard Finish" size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right" class="style3">Invitation:</td>
        <td align="center"><div align="left">
            <input name="Invitation Color" type="text" id="Invitation Color" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
            <input name="Invitation Weight" type="text" id="Invitation Weight" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
            <input name="Invitation Type" type="text" id="Invitation Type" size="10" maxlength="10">
        </div></td>
        <td align="center"><div align="left">
            <input name="Self Mailer Finish2" type="text" id="Self Mailer Finish" size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right"><span class="style3">Envelope #1</span></td>
        <td><span class="style4">
          <input name="Cover_Color" type="text" value="" size=10 maxlength=50>
        </span></td>
        <td><input name="Cover_Color" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Cover_Color" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Cover_Color" type="text" value="" size=10 maxlength=50></td>
      </tr>
      <tr>
        <td align="right"><span class="style3">Envelope #2</span></td>
      </tr>
      <tr>
        <td width = "125" align="right"><span class="style3">Cover (If booklet):</span></td>
        <td><input name="Cover_Color" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Cover_Weight" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Cover_Brand" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Cover_Finish" type="text" value="" size=10 maxlength=50></td>
      </tr>
      <tr>
        <td width = "125" align="right"><span class="style3">Inside Pages:</span></td>
        <td><input name="Inside_Pages_Color" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Inside_Pages_Weight" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Inside_Pages_Brand" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Inside_Pages_Finish" type="text" value="" size=10 maxlength=50></td>
      </tr>
      <tr>
        <td align="right" class="style3">Other:</td>
        <td colspan="4"><label>
          <textarea name="Other2" id="Other2" cols="45" rows="5"></textarea>
        </label></td>
      </tr>
      <tr>
        <td width = "125" align="right" valign="top"><span class="style3">Paper Notes:</span></td>
        <td colspan="4"><span class="style3">
          <textarea cols=23 name="Paper_Notes" rows=4 wrap=virtual></textarea>
        </span></td>
      </tr>
      <tr>
        <td colspan="3" align="right" ><div align="left">
            <blockquote>
              <p><span class="style7">Ink Specs:</span></p>
            </blockquote>
        </div></td>
      </tr>
      <tr>
        <td width = "125" align="right" ><span class="style3">Ink:</span></td>
        <td align="center" valign="bottom"><span class="style3">Front</span></td>
        <td align="center" valign="bottom"><span class="style3">Back</span></td>
      </tr>
      <tr>
        <td align="right" ><span class="style3">Self Mailer</span></td>
        <td align="center" valign="bottom"><label>
          <div align="left">
            <input name="Self Mailer Ink Front" type="text" id="Self Mailer Ink Front" value="4" size="10" maxlength="10">
            </div>
        </label></td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front2" type="text" id="Self Mailer Ink Back" value="4" size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right" class="style3" >Postcard</td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front3" type="text" id="Postcard Ink Front" value="4" size="10" maxlength="10">
        </div></td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front4" type="text" id="Postcard Ink Back" value="4" size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right" class="style3" >Invitation</td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front5" type="text" id="Invitation Ink Front" value="4" size="10" maxlength="10">
        </div></td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front6" type="text" id="Invitation Ink Back" value=" " size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right" class="style3" >Envelope #1</td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front7" type="text" id="Envelope #1 Ink Front" value="4" size="10" maxlength="10">
        </div></td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front8" type="text" id="Envelope #1 Ink Back" value=" " size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td align="right" class="style3" >Envelope #2</td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front9" type="text" id="Envelope #2 Ink Front" value="4" size="10" maxlength="10">
        </div></td>
        <td align="center" valign="bottom"><div align="left">
          <input name="Self Mailer Ink Front10" type="text" id="Envelope #2 Ink Front" value=" " size="10" maxlength="10">
        </div></td>
      </tr>
      <tr>
        <td width = "125" align="right"><span class="style3">Cover (If booklet):</span></td>
        <td><input name="Ink_Cover_Front" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Ink_Cover_Back" type="text" value="" size=10 maxlength=50></td>
      </tr>
      <tr>
        <td width = "125" align="right"><span class="style3">Inside Pages:</span></td>
        <td><input name="Ink_Inside_Pages_Front" type="text" value="" size=10 maxlength=50></td>
        <td><input name="Ink_Inside_Pages_Back" type="text" value="" size=10 maxlength=50></td>
      </tr>
      <tr>
        <td width = "125" align="right" valign="top"><span class="style3">Ink notes: <br>
          (note if heavy coverage)</span></td>
        <td colspan="4"><span class="style3">
          <textarea cols=23 name="Ink_Notes" rows=4 wrap=virtual></textarea>
        </span></td>
      </tr>
      <tr>
        <td colspan="5" align="right"><div align="left" class="style7">
            <blockquote>
              <p>Bindery &amp; Mailing Specs:</p>
            </blockquote>
        </div></td>
      </tr>
      <tr>
        <td width = "125" align="right"><span class="style3">Bindery:</span></td>
        <td colspan="4"><span class="style3">
          <select name="Binary" size="1">
            <option value="">:: Select One ::</option>
            <option value="Trim">Trim</option>
            <option value="Fold">Fold</option>
            <option value="Score">Score</option>
            <option value="Perforate">Perforate</option>
            <option value="Saddle-Stitch">Saddle-Stitch</option>
            <option value="Perfect Bind">Perfect Bind</option>
            <option value="Drill">Drill</option>
            <option value="Die Cut">Die Cut</option>
            <option value="Glue">Glue</option>
            <option value="Other">Other</option>
          </select>
        </span></td>
      </tr>
      <tr>
        <td  align="right"><span class="style3">Personalization: </span></td>
        <td colspan="4"><label><span class="style3">
          <input type="checkbox" name="Simplex Laser" id="Simplex Laser">
          Simplex Laser
          <input type="checkbox" name="Duplex Laser" id="Duplex Laser">
          Duplex Laser
          <input type="checkbox" name="Inkjet" id="Inkjet">
          Inkjet
          <input type="checkbox" name="Indigo" id="Indigo">
          Color Variable</span></label></td>
      </tr>
      <tr>
        <td width = "125" align="right" valign="top"><span class="style3">Mailing Notes:</span></td>
        <td colspan="4"><span class="style3">
          <textarea cols=23 name="Mailing_Notes" rows=4 wrap=virtual></textarea>
        </span></td>
      </tr>
      <tr>
        <td align="right" class="style3">Inserting:</td>
        <td colspan="4"><label class="style3">
          <input type="checkbox" name="Machine Insert (Matched)" id="Machine Insert (Matched)">
          Machine Insert (Non-Match)
          <input type="checkbox" name="Machine Insert (Matched)2" id="Machine Insert (Matched)2">
          Machine Insert (Match) <br>
          <input type="checkbox" name="Hand Insert (Generic)" id="Hand Insert (Generic)">
          Hand Insert (Generic)
          <input type="checkbox" name="Hand Insert (Matched)" id="Hand Insert (Matched)">
          Hand Insert (Matched)</label></td>
      </tr>
      <tr>
        <td width = "125" align="right"><span class="style3">Tabbing:</span></td>
        <td colspan="4"><span class="style3">
          <select name="Tab" size="1">
            <option value="">:: Select One ::</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">2</option>
            <option value="4">2</option>
          </select>
        </span></td>
      </tr>
      <tr>
        <td align="right" class="style3">Flats:</td>
        <td colspan="4"><label>
          <input type="checkbox" name="Sort &amp; Bundle" id="Sort &amp; Bundle">
          <span class="style3"> Sort & Bundle</span></label></td>
      </tr>
      <tr>
        <td align="right" class="style3">Postage:</td>
        <td colspan="4"><label class="style3">
          <input type="checkbox" name="Indicia" id="Indicia">
          Indicia
          <input type="checkbox" name="Hand Stamp" id="Hand Stamp">
          Hand Stamp
          <input type="checkbox" name="Machine Stamp" id="Machine Stamp">
          Machine Stamp
          <input type="checkbox" name="Meter Inline" id="Meter Inline">
          Meter Inline
          <input type="checkbox" name="Meter Offline" id="Meter Offline">
          Meter Offline</label></td>
      </tr>
    <tr>
    </table>
    <table width = "800" border = "0" align="center" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
    <tr>
    <td width = "106" align="right" ><span class="style3">Shipping: </span></td>
    <td width="82" align="Left"><span class="style3"> Zip:</span></td>
    <td width="592"><INPUT NAME="Zip" TYPE="text" VALUE="" SIZE=5 MAXLENGTH=10></td>
    </tr>
    <tr>
    <td><span class="style4"></span></td>
    <td align="left"><span class="style3"> City:</span></td>
    <td><INPUT NAME="City" TYPE="text" VALUE="" SIZE=20 MAXLENGTH=50></td>
    </tr>
    <tr><td><span class="style4"></span></td>
    <td align="left"><span class="style3"> State:</span></td>
    <td><span class="style3">
      <select name="state">
        <option value="null">:: Select State ::</option>
        <option value="AL">Alabama</option>
        <option value="AK">Alaska</option>
        <option value="AZ">Arizona</option>
        <option value="AR">Arkansas</option>
        <option value="CA">California</option>
        <option value="CO">Colorado</option>
        <option value="CT">Connecticut</option>
        <option value="DE">Delaware</option>
        <option value="FL">Florida</option>
        <option value="GA">Georgia</option>
        <option value="HI">Hawaii</option>
        <option value="ID">Idaho</option>
        <option value="IL">Illinois</option>
        <option value="IN">Indiana</option>
        <option value="IA">Iowa</option>
        <option value="KS">Kansas</option>
        <option value="KY">Kentucky</option>
        <option value="LA">Louisiana</option>
        <option value="ME">Maine</option>
        <option value="MD">Maryland</option>
        <option value="MA">Massachusetts</option>
        <option value="MI">Michigan</option>
        <option value="MN">Minnesota</option>
        <option value="MS">Mississippi</option>
        <option value="MO">Missouri</option>
        <option value="MT">Montana</option>
        <option value="NE">Nebraska</option>
        <option value="NV">Nevada</option>
        <option value="NH">New Hampshire</option>
        <option value="NJ">New Jersey</option>
        <option value="NM">New Mexico</option>
        <option value="NY">New York</option>
        <option value="NC">North Carolina</option>
        <option value="ND">North Dakota</option>
        <option value="OH">Ohio</option>
        <option value="OK">Oklahoma</option>
        <option value="OR">Oregon</option>
        <option value="PA">Pennsylvania</option>
        <option value="RI">Rhode Island</option>
        <option value="SC">South Carolina</option>
        <option value="SD">South Dakota</option>
        <option value="TN">Tennessee</option>
        <option value="TX">Texas</option>
        <option value="UT">Utah</option>
        <option value="VT">Vermont</option>
        <option value="VA">Virginia</option>
        <option value="WA">Washington</option>
        <option value="WV">West Virginia</option>
        <option value="WI">Wisconsin</option>
        <option value="WY">Wyoming</option>
      </select>
    </span></td>
    </tr>
    <tr>
    <td><span class="style4"></span></td>
    <td colspan="2"><span class="style3">(If not specified will be FOB our dock.)</span></td>
    </tr>
    </table>
    <table width = "800" border = "0" align="center" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
    <tr>
    <td width = "125" align="right" valign="top"><span class="style3">Special instructions:</span></td>
    <td colspan="4"><TEXTAREA cols=23 name="Special_Instructions" rows=4 wrap=virtual></TEXTAREA></td>
    </tr>
    <tr>
    <td></td>
    <td><input type="submit" name="Submit" value="Submit">
    <input type="reset" name="Reset" value="Reset"></td>
    </tr>
    </table>
    </form>
    <TR><TD vAlign=top> </TD>
    </TR>
    </TBODY>
    </TABLE>
    </TD>
    </TR>
    </TBODY>
    </TABLE>
    </BODY><!-- InstanceEnd --></HTML>
    aspform.asp . . . the form that processes the data and dumps it into a .csv file
    <%
    'ASP Form Processor
    Dim datafile, redirectpage
    datafile=Request.Form("filesave")
    redirectpage=Request.Form("redirpage")
    Dim fso, f
    Set fso=Server.CreateObject("Scripting.FileSystemObject")
    Set f=fso.OpenTextFile(Server.MapPath ("response.csv"), 8, True)
    f.WriteBlankLines(1)
    f.WriteLine "Date : " & CStr(Date)
    For Each field in Request.Form
    If field<>"filesave" And field<>"redirpage" Then
    f.WriteLine field & " : " & Request.Form(field)
    End If
    Next
    f.WriteBlankLines(1)
    f.Close
    Set f=Nothing
    Set fso=Nothing
    Response.Redirect "thankyou.asp"
    %>
    response.csv . . . the data collected from the form which is out of order
    Date : 11/10/2009
    to :   [email protected]
    Flat_Size :   18x6
    Finished/Folded_Size:   : 9x6
    Ink_Notes :   heavy
    City :
    Submit :   Submit
    subject :   Franklin Request a Quote Form
    Quantity :   100000
    Size_Notes :
    Other2 :
    Ink_Inside_Pages_Front :
    Ink_Inside_Pages_Back :
    Duplex   Laser : on
    print_blank_fields   : 1
    Contact_Name   : MM
    Contact_Email   : [email protected]
    Proof_Required   : PDF
    Cover_Weight :
    Inside_Pages_Color :
    Inside_Pages_Weight :
    Inside_Pages_Brand :
    Inside_Pages_Finish :
    Binary :   Fold
    Company_Name   : FP
    Number_of_Pages   : 1
    textfield :
    textfield2 :
    Paper_Notes :
    Indicia :   on
    Date_estimate_needed : NOV
    10
    RadioGroup1   : 2
    RadioGroup3   : Yes
    Cover_Color   :
    Special_Instructions :
    Self Mailer   : on
    Self Mailer Finish2 :
    Cover_Brand :
    Self Mailer   Ink Front : 4
    Self Mailer   Ink Front2 : 4
    Self Mailer   Ink Front3 : 4
    Self Mailer   Ink Front4 : 4
    Self Mailer   Ink Front5 : 4
    Self Mailer Ink Front6 :
    Self Mailer   Ink Front7 : 4
    Self Mailer Ink Front8 :
    Self Mailer   Ink Front9 : 4
    Self Mailer Ink Front10 :
    Ink_Cover_Front :
    Ink_Cover_Back :
    state :   null
    Specify :
    Postcard   Color2 : white
    Postcard   Weight2 : 100
    Postcard   Type : cover
    Postcard   Finish2 : gloss
    Postcard Color :
    Postcard Weight :
    Postcard Type Weight :
    Postcard Finish :
    Mailing_Notes :
    Invitation Color :
    Invitation Weight :
    Invitation Type :
    Tab : 2
    Zip :
    Cover_Finish :
    Any response would be greatly appreciated.

    The order that fields appear in the request object is somewhat arbitrary. If you want to control the order, then you can reference each field by name rather than iterating through the collection. Or, you can try this method:
    http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=64

  • Hi, I am using HP11 and iPlanet web server. When trying to upload files over HTTP using FORM ENCTYPE="multipart/form-data" that are bigger than a few Kilobytes i get a 408 error. (client timeout).

    Hi, I am using HP11 and iPlanet web server. When trying to upload files over HTTP using FORM ENCTYPE="multipart/form-data" that are bigger than a few Kilobytes i get a 408 error. (client timeout). It is as if the server has decided that the client has timed out during the file upload. The default setting is 30 seconds for AcceptTimeout in the magnus.conf file. This should be ample to get the file across, even increasing this to 2 minutes just produces the same error after 2 minutes. Any help appreciated. Apologies if this is not the correct forum for this, I couldn't see one for iPlanet and Web, many thanks, Kieran.

    Hi,
    You didnt mention which version of IWS. follow these steps.
    (1)Goto Web Server Administration Server, select the server you want to manage.
    (2)Select Preference >> Perfomance Tuning.
    (3)set HTTP Persistent Connection Timeout to your choice (eg 180 sec for three minutes)
    (4) Apply changes and restart the server.
    *Setting the timeout to a lower value, however, may    prevent the transfer of large files as timeout does not refer to the time that the connection has been idle. For example, if you are using a 2400 baud modem, and the request timeout is set to 180 seconds, then the maximum file size that can be transferred before   the connection is closed is 432000 bits (2400 multiplied by 180)
    Regards
    T.Raghulan
    [email protected]

  • Problem during view Adobe Form in Web Request

    Hi All,
    I am facing problem while viewing the adobe form inside the Web Request form.
    Let me describe the issue clearly.
    I need to have a table in Adobe Form.So i created one table type and bind it to the table structure created, in Adobe Form.
    Then i uploaded the form as web request successfully.
    Now when i m trying to view the form from web ui, its unable to assign child node data at runtime.so dump is coming.
    Can anyone show light on this....i have tried all the possibilities.
    Unfortunately there is no standrad scenario available for reference.
    Regards,

    Hi Satish,
    Thanks for your reply.But this is not my requirement.
    If you will go to tcode CRM_UI and log in using business role CRMGRMPRGMAN, then go to Application and open one application.Here there is one assignment block called 'Application Form'. Here i have uploaded my Adobe Form as web request.
    This is working fine when i have simple linear form.
    But when i am using table inside the form and doing binding for it, Application is getting created with that form but while openning it here in the assignment block, dump is coming as below.Its not able to assign the child node.
    The ABAP call stack was:
    Method: NODE_ELEM_2_STRUCT of program CL_WD_ADOBE_SERVICES==========CP
    Method: NODE_2_DDIC of program CL_WD_ADOBE_SERVICES==========CP
    Method: DATASOURCE_2_FM_PARAMS of program CL_WD_ADOBE_SERVICES==========CP
    Method: CREATE_PDF_DDIC of program CL_WD_ADOBE_SERVICES==========CP
    Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/CADOBE==================CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/CADOBE==================CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Regards...

  • Submitted PDF form data are empty

    I created a simple PDF form using Acrobat X Pro that containing one textbox ("txtName") and one button ("btnSubmit"). The button's action is set to "Submit a form" and the URL is set to an asp.net generic handler ("PdfFormHandler.ashx").
    When I open the PDF in browser and fill in the textbox and click on submit button, the form submitted. But on the server side, "txtName" is always empty. There are no errors but just missing the submitted data. the server side code is:
    public class PdfFormHandler : IHttpHandler
        public void ProcessRequest(HttpContext context)
            if (context.Request.RequestType == "POST")
                var name = context.Request.Form["txtName"];
                context.Response.ContentType = "text/plain";
                context.Response.Write("Hello " + name);
        public bool IsReusable
            get
                return false;
    I should see "Hello " and then a name. But since it's not able to retrieve "txtName", it only prints "Hello".
    i found what the problem is and i posted the answer here. http://stackoverflow.com/questions/10885969/adobe-pdf-form-submitted-but-request-form-coll ection-is-empty

    You could try first flattenening the fields. This converts the field appearances to regular page contents. You can do this with JavaScript, PDF Optimizer, or a Preflight fixup.

  • How to save the form data into adobe db?

    Hi All,
    How to save the form data into adobe db?
    I have designed one xdp file.
    Through processFormSubmission(), I got the submitted form data as Document obj.
    Then I have called the workflow kickoff program.
    code:
    InvocationRequest request = myFactory.createInvocationRequest ("myprocessname", //Specify the long-lived process name
    "invoke", //Specify the operation name
    params, //Specify input values (HashMap obj)
    false); //Create an asynchronous request
    It successfulyy started the workflow, but the submitted form data is not saved anywhere.
    And also, How get the form data from tables?
    Please provide the solution for the above.
    Thanks in advance.
    Regards,
    Saravanan G

    You need to create a process variable of type IN if you want to be able to pass data to your process. Then the params parameter (HashMap) contains a list of all the IN variables with their content that you want to pass to your process. They key is the name of the variable and the value the content. That way you should get it in your process.
    Now LiveCycle will create a column in the database for every process variable, so the content will be saved in the database just by creating that process variable.
    Jasmin

  • Multipart/form-data and file attachment

    Hi ,
    This question has probably been asked before, but if not then here it is. Any replies will be appreciated:
    Q. When using "Enctype=Multipart/form-data", with file attachment alongwith other form fields, is it mandatory to attach a file ? What if user selects no file to attach?
    Q. If no, then how can it be possible that a form can be submitted without attaching a file since when I try to submit a form with no file attached to it, it gives me error message saying :java.lang.NullPointerException
    Q. Does it mean that I can't have a form with a blank "File" input field, if the form's Enctype is "multipart/form-data"? Since users may not select a file to attach to the form, in other words it is an optional.
    I hope I was clear enough in explaining my questions.
    Thanks in advance.

    I am using Orielly's file attachement pacakge.
    Here's what I am doing in my JSP page: It does the following:
    int maxFileSize = 10 * 1024 * 1024; // 5MB max
    String uploadDir = "/direct/files/upload/";
    String FormResults = "";
    String FileResults = "";
    String fileName = "";
    String fileName2 = "";
    String paramName="";
    String paramValue="";     
    File f;
    int filecounter=1;
    first get the form fields using following code:
    MultipartRequest multi = new MultipartRequest(request, uploadDir, maxFileSize);
    Enumeration params = multi.getParameterNames();
    //Get the form information
    while (params.hasMoreElements())
         paramName = (String) params.nextElement();     
         paramValue = multi.getParameter(paramName);
         if (paramName.equals("emailconfirm"))
              emailconfirmation = paramValue;
         else if (paramName.equals("Requester"))
              Requester = paramValue;
         else if (paramName.equals("TodaysDate"))
              TodaysDate = paramValue;
         else if (paramName.equals("Extension"))
    }//end while
    Then it gets the file information using the following code: I have two file fields in my form so that's why I am using a filecounter to find out if user has attached two files or just one:
    Enumeration files = multi.getFileNames();
    while (files.hasMoreElements())
         String formName = (String) files.nextElement();
         if (filecounter == 2)
    fileName2 = multi.getFilesystemName(formName);
         String fileType = multi.getContentType(formName);
              f = multi.getFile(formName);
         FileResults += "<BR>" + formName + "=" + fileName2 + ": Type= " + fileType + ":
    Size= " + f.length();
         else
         {     fileName = multi.getFilesystemName(formName);
              String fileType = multi.getContentType(formName);
              f = multi.getFile(formName);
              FileResults += "<BR>" + formName + "=" + fileName + ": Type= " + fileType + ":
    Size= " + f.length();
         filecounter=filecounter+1;
    Then after composing the mail message I send email with the form fields and file attachments using following code:
    Properties props = new Properties();
    MimeBodyPart mbp1 = new MimeBodyPart();
    MimeBodyPart mbp2 = new MimeBodyPart();
    MimeBodyPart mbp3 = new MimeBodyPart();
    URLDecoder urlDecoder = new URLDecoder();
    String to1 = urlDecoder.decode(toemail);
    String from1 = urlDecoder.decode(fromemail);
    String cc1 = urlDecoder.decode(ccemail);
    props.put( "mail.host", host );
    Session session1 = Session.getDefaultInstance(props, null);
    // Construct the message
    Message msg = new MimeMessage( session1 );
    msg.setFrom( new InternetAddress( from1 ) );
    msg.setRecipients( Message.RecipientType.TO, InternetAddress.parse( to1, false ) );
    msg.setRecipients( Message.RecipientType.CC, InternetAddress.parse( cc1, false ) );
    msg.setSubject( subject );
    msg.setHeader( "X-Mailer", "ExceptionErrorMail" );
    msg.setSentDate( new Date() );
    mbp1.setText(mail_message);
    mbp1.setContent(mail_message, "text/html");
    // Send the email message
    FileDataSource fds = new FileDataSource(uploadDir + fileName);
    FileDataSource fds2 = new FileDataSource(uploadDir + fileName2);
    mbp2.setDataHandler(new DataHandler(fds));
    mbp3.setDataHandler(new DataHandler(fds2));
    mbp2.setFileName(fileName);
    mbp3.setFileName(fileName2);
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    mp.addBodyPart(mbp2);
    mp.addBodyPart(mbp3);
    msg.setContent(mp);
    Transport.send( msg );
    //email sent...
    //delete the two files from the server..
    File f2 =new File(uploadDir + fileName);
    f2.delete();
    File f3 =new File(uploadDir + fileName2);
    f3.delete();     
    //End of code
    So when I don't attach a file and submit my form , I get the error message that I mentioned in my previous post.
    Any more ideas?

  • How to solve java.io.IOException: Corrupt form data: premature ending

    hei evryone!
    Does anyone knows how to solve this bug?
    java.io.IOException: Corrupt form data: premature ending
    Im using Oreilly's cos.jar MultipartRequest
    here is my form :
    <FORM METHOD="POST" NAME="uploadform" action="mbbfile" ENCTYPE="multipart/form-data">
    <TR>
    <TD>Select a File:</TD>
    <TD><INPUT TYPE="FILE" NAME="srcfile" style="width:400px"/></TD>
    </TR>
    <TR><TD><INPUT TYPE="SUBMIT" VALUE="Send"/></TD></TR>
    </FORM>
    HERE IS mbbfile which is a servlet :
    package mbb.servlet;
    import java.io.IOException;
    import java.sql.Connection;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import com.oreilly.servlet.MultipartRequest;
    import org.jconfig.Configuration;
    import org.jconfig.ConfigurationManager;
    public class MBBFileServlet extends HttpServlet{
         private static final Configuration conf = ConfigurationManager.getConfiguration("ConfigFile");
         public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              String filePath = conf.getProperty("FilePath", "", "test");
              try{
              MultipartRequest multi = new MultipartRequest(req,filePath,5*1024*1024);
              }catch(Exception e){
                   System.out.println("MBBFileServlet Exception ---> "+e.getMessage());
         public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              doGet(req,res);
    Sometimes it works meaning the file is uploaded in the directory without any exception, sometimes the file is uploaded but with exception on the log saying "MBBFileServlet Exception ---> Corrupt form data: Premature Ending". and sometimes the files is not uploaded at all and when i check the error is : "MBBFileServlet Exception ---> Corrupt form data: Premature Ending". Can anyone please help me on this matter. Thx!
    Your response would be deeply appreciated.
    br,
    TAC

    Hi all!
    Since I've spent some days now trying to figure out what was wrong with my file upload in Struts 1.1, I would like to share my solution with the rest of you in order to spare you for the same amout of wasted time I've spent :-)
    My platform is Resin 3.0.8 and Struts 1.1. My problem was that JPEG's got corrupted when arriviving at the server. After a few days searching on the net, I tried with a plain servlet and the O'Reilly package, and the app worked perfect.
    Here is my servlet:
    package no.yourcompany.yourapp.servlet;
    import com.oreilly.servlet.multipart.MultipartParser;
    import com.oreilly.servlet.multipart.Part;
    import com.oreilly.servlet.multipart.FilePart;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.ServletException;
    import javax.servlet.ServletContext;
    import javax.servlet.RequestDispatcher;
    import java.io.IOException;
    import java.io.ByteArrayOutputStream;
    public class ImageUpload extends HttpServlet {
    private static final String PAGE_RECEIPT = "/popImageUploadReceipt.do";
    private static final int MAX_FILE_SIZE_IN_BYTES = 10000000; // 10 M
    * Extracts image from request and puts it into person form.
    * @see HttpServlet#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    // custom beans from my project, not defined here
    PersonRegistrationForm personRegistrationForm = null;
    PortraitImage portraitImage = null;
    ByteArrayOutputStream outputStream = null;
    Part currentPart = null;
    FilePart currFilePart = null;
    personRegistrationForm = (PersonRegistrationForm) request.getSession().getAttribute(DsnSessionKeyConstantsIF.KEY_PERSON_FORM);
    portraitImage = personRegistrationForm.getPortraitImage();
    try {
    MultipartParser parser = new MultipartParser(request, MAX_FILE_SIZE_IN_BYTES);
    while ((currentPart = parser.readNextPart()) != null) {
    if (currentPart.isFile()) {
    currFilePart = (FilePart) currentPart;
    outputStream = new ByteArrayOutputStream();
    currFilePart.writeTo(outputStream);
    // portraitImage is just a bean for encapsulating image data, not defined in this posting
    portraitImage.setContentType(currFilePart.getContentType());
    portraitImage.setImageAsByteArray(outputStream.toByteArray());
    portraitImage.setOriginalFileName(currFilePart.getFileName());
    break;
    } // if (currentPart.isFile())
    } // while ((currentPart = parser.readNextPart()) != null)
    } catch (IOException ioe) {
    // noop
    // redirect to receipt page
    ServletContext servletContext = this.getServletContext();
    RequestDispatcher requestDispatcher = servletContext.getRequestDispatcher(PAGE_RECEIPT);
    requestDispatcher.forward(request, response);
    } // doPost
    } // ImageUpload
    AND ADD THIS TO YOUR WEB.XML
    <servlet>
    <servlet-name>ImageUpload</servlet-name>
    <servlet-class>no.yourcompany.yourapp.servlet.ImageUpload</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ImageUpload</servlet-name>
    <url-pattern>imageUpload.do</url-pattern>
    </servlet-mapping>
    AND THE HTML-FORM IS HERE
    <form action="/yourapp/imageUpload.do" method="post" enctype="multipart/form-data" accept="image/*">
    <p>
    <input type="file" name="portraitImage" />
    </p>
    <p>
    <input type="image" src="/dsn/img/btn_last_bilde.gif" border="0">
    </p>
    </form>

  • Passing form data from html page to JSP page

    Hi,
    I have a simple HTML page with a form on it that sends the information to a JSP page that stores the form data in a JSP session. I created a simple form that asks for the user's name, sends it to the JSP page, stores that in a session, then sends it to another JSP page which displays the name. This worked fine.
    However, I added another input box to my form that asks for the user's age to do the same steps as outlined above. This does not work, and I'm not sure why. Here's the code from my HTML page:
    <form method=post action="savename.jsp">
    What's your name?
    <input type=text name=username size=20 />
    <p />
    What's your age?
    <input type=text name=age size=20 />
    <p />
    <input type=submit />Here's the code from my JSP page, savename.jsp (later on in the JSP page it links to another page, but that is not relevant):
    <%
    String name = request.getParameter("username");
    String age = request.getParamater("age");
    session.setAttribute("theName", name);
    session.setAttribute("theAge", age);
    %>Finally, here is the error message from Tomcat 6.0.9:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 3 in the jsp file: /savename.jsp
    The method getParamater(String) is undefined for the type HttpServletRequest
    1: <%
    2: String name = request.getParameter("username");
    3: String age = request.getParamater("age");
    4: session.setAttribute("theName", name);
    5: session.setAttribute("theAge", age);
    6: %>
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)I do not understand the error, as it works fine when I simply try to retrieve "theName", but breaks when I try to retrieve both.
    What is it I am missing here?
    Thanks,
    Dan

    Ummm.... you misspelled "parameter" the second time
    you tried to use it.......
    That is incredibly embarrassing. Sorry if I made anyone think it was something more serious. Holy mackerel, I think it's time for me to read over my code much more carefully before posting about a problem.
    Thanks for the help DrClap.

Maybe you are looking for

  • Delete emails from server after retrieving with IMAP protocol?

    Hi, I am using Mail as my email program and have set up my account with IMAP. When I use the POP protocol, I get the option to 'Remove copy from server after retrieving message'. When I set up Mail with the IMAP protocol, there is no such an option.

  • CR 2008 Multiple Crashes on single & simple clics !

    Hi all, I'm getting crazy with CR 2008. While creating some reports (from scratch or existing ones), after a few minutes, if I click onto the report itself (on a field, or on the blank area) CR completely crashes and the application get closed. I've

  • It won't let me log in.

    I have two accounts on my computer. i think i might've typed the password too many times when trying to log in to my main account, because every time i try to log in to that account it says that i cannot be logged in to this account at this time. I d

  • New C40 cisco codec

    Hi, I'm working for Industry Canada and we just received a new video conference system.  It is connected to a DSL line.  The video conferencing work perfect when we dial out.  But I have a issue when a external person try to dial me in, it can't conn

  • Podcast removed from the iTunes directory as a result of technical problem

    I received an email from iTunes informing me that my feed: http://www.mevio.com/feeds/d4emixtape.xml Had been removed from the iTunes directory because the feed had some sort of technical issue. I've checked the feed a couple of ways including using