Getting parameters from multipart request

I'm using org.apache.tomcat.utils.fileupload to parse uploaded files from a multipart form, but unfortunately I can't seem to get normal parameters from such a form with request.getParameter(). Is there a way to use both together?

You might already have solved your problem, but you may find this MultipartFilter useful too: http://balusc.blogspot.com/2007/11/multipartfilter.html
It automatically detects multipart/form-data requests and sets the plain vanilla form parameters back in the ParameterMap of the HttpServletRequest and sets the files as attributes of the HttpServletRequest. This way there is no need to worry about the form encoding type inside the servlet.

Similar Messages

  • Getting parameters from text and file input tag. .  canyou help me ?

    Hello!
    Is there anyway of getting parameters from an
    text field input in a form like :
    <form name="signinForm" method="post" action="uploadFile.jsp" enctype="multipart/form-data" >Actually I would like to insert the parameters and make the upload of an file
    on the same form. It is something likethis :
    Form.jsp
    <form name="signinForm" method="post" action="uploadFile.jsp" enctype="multipart/form-data" >   
    <input type="text" id="name" name="signinName" />
    <input name="signinFile" id="fileUp" type="file" />   
    <input type="submit" id="submit_btn" name="signinSubmit"/>uploadingFile.jsp
    <%@ page import="java.io.*,javax.servlet.http.HttpServletRequest,javax.servlet.ServletInputStream" %>
    <%@ page import="java.io.FileWriter,java.io.IOException" %>
    <%
    .//upload the file
    String email = request.getParameter("signinName").trim(); //this line is bringing me an NullPointerException
    %>Thanks in advance for any suggestion!!
    All the best!

    You cannot use the HttpServletRequest object to retrieve parameters from a multipart form. You'll have to use a package that can parse such a form. I suggest Apache commons FileUpload.
    http://jakarta.apache.org/commons/fileupload/
    Using this package you can get both the file upload and any other parameters.

  • How to run a project which gets parameters from a batch file

    Hello all,
    I use to run a program, which gets parameters only by interactive mode, using a batch file as you can see below:
    # myprogram < batchfile.txt
    Now, I'm updating its code by SunStudioExpress IDE and I'd like to run it from the batchfile. I have noticed that the project properties window has the option run -> arguments, however this program doesn't accept arguments this way and for changing it, I'd have a hard job.
    Does someone know how to run this project and to get its parameters from batchfile?
    Regards,
    Glauber

    Ah, it appears that when you run the project, "<" is passed as one of the arguments and is not treated as input redirection.
    Sorry, it looks like it is not possible to do the redirection; and it looks like a bug to me. Could you please file it through bugs.sun.com? It shouldn't take long as the problem is evident now.

  • How to get servername from a request but not the cluster name?

    hi all,
    how do i get server name from the request? This is the scenario, When ever a request is made, its handed to a cluster and then directed to one of the server in the cluster.
    When i say request.getServerName();---- This is giving me the cluster name and not the server name.
    any suggestions/idea ? Thanks alot in advance.
    Edited by: new_member on Apr 18, 2008 9:11 PM

    ADJavaUser wrote:
    You could try this:
    Create a batch or shell script that executes ifconfig or ipconfig and writes the IP address out to a file.
    Place each shell script file at different locations on each server within the cluster.
    Then within the code, try to execute each script from an external process (Runtime.exec). Since the files are at different locations within each server only the correct shell script for each server should execute and write the IP Address to a file. You'll have to detect which one ran. Then open the file that was written, possible parse it for the IP Address and use the code that I already provided.
    This is a time consuming process that will slow your application. Additionally depending on how your cluster is set up it might not work and still return the cluster's IP address.I got the solution....java.net.InetAddress.getLocalHost().getHostName(); works fine...But thanks guyz for ur responses

  • Re: how to get servername from a request but not the cluster name?

    hi all,
    how do i get server name from the request? This is the scenario, When ever a request is made, its handed to a cluster and then directed to one of the server in the cluster.
    When i say request.getServerName();---- This is giving me the cluster name and not the server name. Say cluster1 has server1 and server2 and request is dispatched to any of one these servers. request.getServerName() - gives me cluster1 but I need to get server1/server2.
    any suggestions/idea ? Thanks alot in advance.

    http://forum.java.sun.com/thread.jspa?threadID=5287623

  • How to pass GET parameters from BPEL to webservice?

    Hi,
    How can I pass GET parameters to webservice from BPEL. For example if a webservice expects to get 2 parameters as GET parameters like the following URL:
    http://xxx.xxx.xxx.xxx/some-web-service?parama=abc&paramb=123
    How can I pass parama and paramb to the webservice call?
    Thanks,
    Ronen

    Hello Ronen,
    Im assuming that you're using SOA Suite 11g. The developer guide describes the following: http://docs.oracle.com/cd/E29505_01/dev.1111/e10224/sca_bindingcomps.htm#CHDEEGDC
    And the following blogpost explains in detail how to implement https://blogs.oracle.com/reynolds/entry/oracle_http_adapter
    Good luck!
    Melvin

  • Get parameters from html page from java application standalone ...

    Hi all,
    I work in one solution that i have values in Html Page and i want get the parameters values from html and cath they in java application standalone.
    The Html page is in same host than de java application.
    I want know if this is possible. I wnat know if without HttpServlet i can get the parameters from Html Page pure.
    Thanks in Advance for the ideas,
    Antonio.

    Hi Abdul,
    The problem is my client want one solution where i have one page simple page Html and one application java standalone. This application runs in one machine, but we don't have web server. So the question is: Is possible without web server i can get the parameters values that is inside the html page from java application. I remember you that the application java is one .jar that run's with one command line from crontab "java -jar teste.jar".

  • Getting parameters from URL: use of Special Chars

    I'm unable to retrieve the Special Chars from URL parameters.  Does someone have an idea where to look for?
    Examples where no Special Chars is retrieved :
    ...App?param=Aménagement
    ...App?param=Am<é>nagement
    ...App?param=Am%E9nagement
    I'm using this code :
              IWDProtocolAdapter protocolAdapter =
                   WDProtocolAdapter.getProtocolAdapter();
              IWDRequest request = protocolAdapter.getRequestObject();
                                    String param = request.getParameter("param");
    Thanks!

    okay, So if I use :
    ...App?param=Am%E9+nagement
    How would you then integrate URLDecoder.decode in the following code?
    IWDProtocolAdapter protocolAdapter =
         WDProtocolAdapter.getProtocolAdapter();
    IWDRequest request = protocolAdapter.getRequestObject();
    String param = request.getParameter("param");

  • Getting parameters from a frame (JSP)

    Hi all,
    I am trying to retrieve the url in the adress bar, from within a frame.
    Lets say I have three JSP files, FRAME.JSP includes TOP.JSP and MAIN.JSP. if I call the method request.getParameter('toto'); from within MAIN.JSP I am only looking in the URL of MAIN.JSP and not in what I want, being the URL of FRAME.JSP.
    Does any of you have an idea on how I could get the url or a parameter of the FRAME.JSP page?
    Thanx in advance,
    Marc

    Could You maybe show some code, especially from FRAME.JSP?

  • Problem !! How to upload an file and get parameters on the same form ?

    Hello!
    Is there anyway of getting parameters from an
    text field input in a form like :
    <form name="signinForm" method="post" action="uploadFile.jsp" enctype="multipart/form-data" >Actually I would like to insert the parameters and make the upload of an file
    on the same form. It is something likethis :
    Form.jsp
    <form name="signinForm" method="post" action="uploadFile.jsp" enctype="multipart/form-data" >   
    <input type="text" id="name" name="signinName" />
    <input name="signinFile" id="fileUp" type="file" />   
    <input type="submit" id="submit_btn" name="signinSubmit"/>uploadingFile.jsp
    <%@ page import="java.io.*,javax.servlet.http.HttpServletRequest,javax.servlet.ServletInputStream" %>
    <%@ page import="java.io.FileWriter,java.io.IOException" %>
    <%
    .//upload the file
    String email = request.getParameter("signinName").trim(); //this line is bringing me an NullPointerException
    %>Thanks in advance for any suggestion!!
    All the best!

    You can get the parameter value directly. You can do the following to get the parameter name.
    Directly take the request's input stream and parse the header and findout the value for text field.
    Or you can use apache's file upload utilities and do the following
    DiskFileItemFactory factory = new DiskFileItemFactory();
                   ServletFileUpload upload = new ServletFileUpload(factory);
                   List fileItems = upload.parseRequest(request);
                   Iterator iter = fileItems.iterator();
                   while (iter.hasNext()) {
                        FileItem item = (FileItem) iter.next();
                        if (item.isFormField()) {
         //Form data fields will be displayed here          out.println(item.getFieldName());
         out.println(item.getString());
    All the best..

  • Passing parameters from 1 jsp to another

    1. Passing String parameter P2 from Filter.jsp to POLGENMA106.jsp thro'
    <instance of NavigatorBar>.setTargetUrl
    ("POLGENMA106.jsp?P2=<%=strTitle%>")
    2. Problem faced :
    Value is not passed properly.
    3. Reason :
    When I press Next record in the NavigatorBar,
    the string "POLGENMA106.jsp?P2<%=strTitle%>" gets appended with
    "?<View name>_NAVIGATE=NEXT" internally instead of "&<View name>_NAVIGATE=NEXT" assuming that we r not passing any paramters.
    Is there any method by which we can pass paramters explicitly after instantiating NavigatorBar bean.
    4. Code in Filter.jsp:-
    <% strTitle = request.getParameter("P2"); %>
    <center><h2><%=strTitle%></h2></center>
    <jsp:useBean id="RowQuery" class="oracle.jbo.html.databeans.RowsetNavigator" scope="request">
    <%
    Object[] params = new Object[1]; params[0] = strVSCode;
    RowQuery.initialize(application, session , request, response, out, "pol_PMode_Pol_PModeModule.
    ComVsStaticValueView1"); RowQuery.setReleaseApplicationResources
    (true);
    RowQuery.getRowSet().getViewObject().setWhereClauseParams(params);
    RowQuery.getRowSet().getViewObject().executeQuery();
    RowQuery.getRowSet().first();
    %>
    </jsp:useBean>
    <jsp:useBean class="oracle.jbo.html.databeans.NavigatorBar" id="tb" scope="request" />
    <%
    tb.setTargetUrl("POLGENMA106.jsp?P2=<%=strTitle%>");
    tb.initialize(application,session, request,response,out,"pol_PMode_Pol_PModeModule.ComVsStaticValueView1");
    String sImageBase = (String)session.getValue("ImageBase");
    tb.getContainer().setImageBase(sImageBase);
    tb.getContainer().addSeparator(sImageBase + "/FNDIWDVD.gif");
    tb.getContainer().addButton(sImageBase + "/query.gif" , "ComVsStaticValueView1_Query.jsp", "Go to Query Form");
    tb.getContainer().addButton(sImageBase + "/browse.gif" , "ComVsStaticValueView1_Browse.jsp", "Go to Browse Form");
    tb.getContainer().addButton(sImageBase + "/addnew.gif" , "ComVsStaticValueView1_Insert.jsp", "Insert a New Record");
    tb.getContainer().addButton(sImageBase + "/editrec.gif" , "ComVsStaticValueView1_Edit.jsp", "Edit Current Record");
    tb.render();
    %>
    <br>
    One way of doing this is to put P2 in the session so that it can be accessed by POLGENMA106.jsp but this method is not preferable.
    Please Clarify.
    thanks,
    Archana
    null

    John Jdev :Are you using JDeveloper 3.0 or 3.1?
    ... I assume 3.0.
    Archana : Yes.
    Jdev : Are you trying to test this within JDeveloper 3.0?
    ... I assume so, but if not...please let me know.
    Archana : No, Iam not testing it within Jdev 3.0. I've deployed it in Java Web server 2.0 and Iam getting these parameters from the request.
    Jdev : You should note that JDeveloper 3.0
    supports running and debugging ONE JSP, not
    chained JSP/Servlets.
    Archana : Okay. But I din't test it using Jdev. Actually the NavigatorBar bean appends the implicit parameters "<view name>_NAVIGATE" to the JSP name specified in the setTargetUrl(), without checking if the string supplied to setTargetUrl() has a paramter already, that is the problem. So instead of appending "&<view name>_NAVIGATE", it goes as "?<view name>_NAVIGATE".
    Kindly provide a solution for this.
    Thank U !
    null

  • Populating bean attributes from servlet Request

    I know that in a JSP, you can use
    <jsp:setProperty name="p_filters" property="*"/>To populate the properties of a bean from parameters in a request.
    Is there a reliable programmatic way to do this? Since I am using Tomcat, I could use
    JspRuntimeLibrary.introspect(p_filters, request);But that relies on the servlet container's internal classes.
    There really should be a way of doing this easily in a servlet as well as in a JSP! It should be part of the servlet standard, and the JSP standard <setProperty> tag should use that!

    Well, that was buggy. Also, I've added common data types
         private static SimpleDateFormat[] df =
              new SimpleDateFormat("dd-MMM-yy"),
              new SimpleDateFormat("dd-MMM-yyyy"),
              new SimpleDateFormat("yyyyMMdd"),
              new SimpleDateFormat("dd/MM/yy"),
              new SimpleDateFormat("dd/MM/yyyy")
         public static Date parseDate(String d)
              Date result = null;
              for (int i = 0; i < df.length; i++)
                   try
                        result = df.parse(d);
                        if (result != null)
                             return result;
                   catch (Exception e) // Ignore
              return result;
         Sets all attributes of a bean using available parameters from HTTP request
         attributes without a matching parameter in the request are cleared.
         public static void populateBeanFromRequest(Object bean, HttpServletRequest request)
              Object[]     setParam = new Object[1];
              Method[]     methods = bean.getClass().getMethods();
              String          empty = "";
              Boolean          boolZero = new Boolean(false);
              Byte          bZero = new Byte((byte)0);
              Short          sZero = new Short((short)0);
              Integer          iZero = new Integer(0);
              Long          lZero = new Long(0);
              Float          fZero = new Float(0);
              Double          dZero = new Double(0);
              Date          dateZero = new Date(0);
              for (int i = 0; i < methods.length; i++)
                   Class[] paramClass = methods[i].getParameterTypes();
                   if (paramClass.length == 1)
                        String methodName = methods[i].getName();
                        if (methodName.substring(0, 3).equals("set"))
                             String propertyName = methodName.substring(3, 4).toLowerCase() + methodName.substring(4);
                             Logger.debug("Found property " + propertyName);
                             String paramValue = request.getParameter(propertyName);
                             if (paramValue == null)
                                  Logger.debug("No matching parameter found");
                             else
                                  Logger.debug("Found parameter value " + paramValue);
                             try
                                  if (paramClass[0] == String.class)
                                       setParam[0] = (paramValue == null) ? empty : paramValue;
                                  else if (paramClass[0] == Integer.TYPE)
                                       setParam[0] = (paramValue == null) ? iZero : new Integer(paramValue);
                                  else if (paramClass[0] == Date.class)
                                       setParam[0] = (paramValue == null) ? dateZero : parseDate(paramValue);
                                  else if (paramClass[0] == Byte.TYPE)
                                       setParam[0] = (paramValue == null) ? bZero : new Byte(paramValue);
                                  else if (paramClass[0] == Short.TYPE)
                                       setParam[0] = (paramValue == null) ? sZero : new Short(paramValue);
                                  else if (paramClass[0] == Boolean.TYPE)
                                       setParam[0] = (paramValue == null) ? boolZero : new Boolean(paramValue);
                                  else if (paramClass[0] == Long.TYPE)
                                       setParam[0] = (paramValue == null) ? lZero : new Long(paramValue);
                                  else if (paramClass[0] == Float.TYPE)
                                       setParam[0] = (paramValue == null) ? fZero : new Float(paramValue);
                                  else if (paramClass[0] == Double.TYPE)
                                       setParam[0] = (paramValue == null) ? dZero : new Double(paramValue);
                                  else
                                       continue;
                                  Logger.debug(methodName + "(" +
                                       ((paramClass[0] == String.class) ? "\"" : "") +
                                       setParam[0].toString() +
                                       ((paramClass[0] == String.class) ? "\"" : "") + ")");
                                  methods[i].invoke(bean, setParam);
                             catch (Exception e)
                                  Logger.error("Error populating bean", e);
                                  continue;

  • Methods of passing parameters from servlets to servlets

    Hi all,
    Im new to Java servlets. After doing some read-up, I understand that parameters can be passed using request.getSession().setAttribute(). The other method is using hidden element as shown below:
    out.println("<form method=POST>");
    out.println("<center>");
    out.println("<input type=submit value=Next>");
    out.println("</center>");
    out.println("<input type=hidden name=passpage value=" + passpage + ">");
    out.println("</form>)");I just want to find whether there is other alternatives and is there any security implications of using hidden element? Any advice will be much appreciated.
    Regards

    HttpServletRequest#setAttribute() is commonly be used to set some object references inside a Servlet before forwarding the request to a JSP. In the JSP you can access it using EL.
    E.g. in a Servlet:String foo = "bar";
    request.setAttribute("name", foo);
    request.getRequestDispatcher("page.jsp").forward(request, response);and in page.jsp:${name} <!-- prints 'bar' -->which only works if you use Servlet 2.4/JSP 2.0. If older, then use JSTL:<c:out value="${name}" /> <!-- prints 'bar' -->HttpServletRequest#getParameter() is commonly used to retrieve parameters from the request. Those parameters can either be set using a query string (e.g. http://foo.com/page.jsp?name1=value1&name2=value2&name3=value3) or by submitting a form with any input fields.
    Having said that, HTML code belongs in a JSP file, not in a Java class. I highly recommend you to reconsider your design.

  • How to get HttpServletRequest parameters from two forms in a JSP

    I have this JSP with two forms calling the same servlet. Problem is, when I use a submit button in the second form, I am unable to retrieve the request parameters from the form through the servlet. I am wondering if anybody could give me some info on how to get the request parameters from the second form. I tried to see all the parameter names in the request by calling request.getParameterNames(). But the parameters in the second form are not even seen in the request although I am clicking the submit button in this form!

    First, two forms works fine in one jsp so no need to argue about that.
    Second, did you put the form actions and type ("multipart/formdata " ?) explicit in every form header ? Did you supply different form names ?
    Try to call the submit function through javascript - document.forms[0].submit() for your first, and document.forms[1].submit() for your second form...
    Did you forget to close the form tag by chance ?

  • Problem in getting the parameters from teh form html with upload file

    I have used the jspsmartupload package:
    the html file:
    <HTML>
    <BODY BGCOLOR="white">
    <H1>jspSmartUpload : Sample 5</H1>
    <HR>
    <form METHOD="POST" ACTION="sample5.jsp"
    NAME="PW" ENCTYPE="multipart/form-data">
    <table CELLSPACING="0" CELLPADDING="3" BORDER="1" WIDTH="474">
    <!-- FILE -->
    <!-- TEXT -->
    <tr>
    <td width="150">
    <div align="left">
    <p><small><font face="Verdana">Text :  </font></small>
    </div>
    </td>
    <td width="324"><small><font face="Verdana">
    <input TYPE="TEXT" name="myText" value="">
    <br>
    </font></small></td>
    </tr>
    <!-- TEXTAREA -->
    <tr>
    <td width="150">
    <div align="left">
    <p><small><font face="Verdana">Text Area :  </font></small>
    </div>
    </td>
    <td width="324"><small><font face="Verdana">
    <textarea name="myTextArea" rows="4" value=""></textarea>
    <br>
    </font></small></td>
    </tr>
    <!-- PASSWORD -->
    <tr>
    <td>
    <div align="left">
    <p><small><font face="Verdana">PassWord :  </font></small>
    </div>
    </td>
    <td><small><font face="Verdana">
    <input TYPE="PASSWORD" name="myPASSWORD" value="">
    <br>
    </font></small></td>
    </tr>
    <!-- HIDDEN -->
    <tr>
    <td>
    <div align="left">
    <p><small><font face="Verdana">Hidden :  </font></small>
    </div>
    </td>
    <td><small><font face="Verdana">
    <input TYPE="hidden" name="myHidden" value="hidden">
    <br>
    </font></small></td>
    </tr>
    <tr>
    <td><small><font face="Verdana">Select a first file : 
    </font></small></td>
    <td><small><font face="Verdana">
    <input type="file" name="FILE1">
    </font></small></td>
    </tr>
    <tr>
    <td><small><font face="Verdana">Select a second file : </font></small></td>
    <td><small><font face="Verdana">
    <input type="file" name="FILE2">
    </font></small></td>
    </tr>
    <!-- CHECKBOX -->
    <tr>
    <td>
    <div align="left">
    <p><small><font face="Verdana">CheckBox :  </font></small>
    </div>
    </td>
    <td><small><font face="Verdana">
    <input TYPE="CHECKBOX" name="myCheckBox" value="Value 1">
    Value 1<br>
    <input TYPE="CHECKBOX" name="myCheckBox" value="Value 2">
    Value 2<br>
    <input TYPE="CHECKBOX" name="myCheckBox" value="Value 3">
    Value 3<br>
    </font></small></td>
    </tr>
    <!-- RADIO -->
    <tr>
    <td>
    <div align="left">
    <p><small><font face="Verdana">Radio :  </font></small>
    </div>
    </td>
    <td><small><font face="Verdana">
    <input TYPE="radio" name="radio" value="Value 1">
    Value 1<br>
    <input TYPE="radio" name="radio" value="Value 2">
    Value 2<br>
    <input TYPE="radio" name="radio" value="Value 3">
    Value 3<br>
    </font></small></td>
    </tr>
    <!-- SELECT -->
    <tr>
    <td>
    <div align="left">
    <p><small><font face="Verdana">Simple Select :  </font></small>
    </div>
    </td>
    <td><small><font face="Verdana">
    <SELECT name="mySimpleSelect" >
    <OPTION value="Value 1">Value 1</OPTION>
    <OPTION value="Value 2">Value 2</OPTION>
    <OPTION value="Value 3">Value 3</OPTION>
    </SELECT>
    <br>
    </font></small></td>
    </tr>
    <!-- SELECT MULTIPLE -->
    <tr>
    <td>
    <div align="left">
    <p><small><font face="Verdana">Multiple Select :  </font></small>
    </div>
    </td>
    <td><small><font face="Verdana">
    <SELECT multiple name="myMultSelect" >
    <OPTION value="Value 1">Value 1</OPTION>
    <OPTION value="Value 2">Value 2</OPTION>
    <OPTION value="Value 3">Value 3</OPTION>
    </SELECT>
    <br>
    </font></small></td>
    </tr>
    <!-- SUBMIT -->
    <tr>
    <td colspan="2" width="474">
    <div align="center">
    <center>
    <p><small><font face="Verdana">
    <input
    TYPE="Submit">
    </font></small>
    </center>
    </div>
    </td>
    </tr>
    </table>
    </form>
    </BODY>
    </HTML>
    the jsp file :
    <%@page language="java" import="com.jspsmart.upload.*"%>
    <%@page import="java.util.*"%>
    <jsp:useBean id="myUpload" scope="page" class="com.jspsmart.upload.SmartUpload" />
    <HTML>
    <BODY BGCOLOR="white">
    <H1>jspSmartUpload : Sample 5</H1>
    <HR>
    <%
         // Initialization
         myUpload.initialize(pageContext);
         // Upload
         myUpload.upload();          
         // Files
         out.println("<BR><STRONG>Display information about Files</STRONG><BR>");
         out.println("Number of files = " + myUpload.getFiles().getCount() + "<BR>");
         //out.println("Total size (bytes) = " + myUpload.getFiles().getSize() +"<BR>");
         for (int i=0;i<myUpload.getFiles().getCount();i++){
              out.print(myUpload.getFiles().getFile(i).getFieldName());
              if (!myUpload.getFiles().getFile(i).isMissing())
                   out.print(" = " + myUpload.getFiles().getFile(i).getFileName() + " (" + myUpload.getFiles().getFile(i).getSize() + ")");
                   myUpload.getFiles().getFile(i).saveAs("/upload/" + myUpload.getFiles().getFile(i).getFileName());
              else
                   out.print(" = vide");          
              out.println("<BR>");
         // Request
         out.println("<BR><BR><STRONG>Display information about Requests</STRONG><BR>");
         // Retreive Requests' names
         java.util.Enumeration e = myUpload.getRequest().getParameterNames();
         // Retreive parameters
         while (e.hasMoreElements()) {
              String key = (String)e.nextElement();
              String[] values = myUpload.getRequest().getParameterValues(key);               
              // Browse the current parameter values
              for(int i = 0; i < values.length; i++) {
              out.print(key + " = ");
              out.print(values[i] + "<BR>");
    %>
    </BODY>
    </HTML>
    The result shown is:
    jspSmartUpload : Sample 5
    Display information about Files
    Number of files = 2
    FILE1 = path.txt (240)
    FILE2 = WS_FTP.LOG (146)
    Display information about Requests
    radio = Value 2
    mySimpleSelect = Value 1
    myTextArea = test
    myPASSWORD =
    myMultSelect = Value 3
    myHidden = hidden
    myText = test
    myCheckBox = Value 1
    myCheckBox = Value 2
    myCheckBox = Value 3
    I would like to know if i want to get back the parameters from the form ,
    is that i must use Enumeration.
    Because i have tried request.getParameter() to get the value of radio button, textbox, checkbox and select menu, but it get the null values.
    Also, the function of Enumeration does not get the values of parameter in sequence as html form. e.g.In the html file, the first parameters should be textbox,but it displays the radio button's values first.
    How to solve the problem .
    Thanks

    This sounds like a bug in the smart upload code. I have used this stuff before, but it's probably an older version, so maybe they broke something. Enumerations aren't usually guaranteed to keep things in any particular order. I would say for now, make a method to take the enumeration and a param name to find the value. And write to the JSPSmart people.

Maybe you are looking for

  • How can I transfer photos from Apple TV to a new MacBook Pro?  I have My Photo Stream turned on for both.

    I have a new McBook Pro with OS X Mavericks.  I transferred my photos from my old MacBook Pro to my Apple TV.  I turned on My Photo Stream on both my Apple TV and my new MacBook Pro, and I want to transfer my photos to my new MacBook.  Will this work

  • 5.1 Help with Audigy 2

    I have an Audigy 2 ZS Platnium Pro and I recently upgraded to the latest drivers, bad mistake as I am having heck now trying to get everything work right again. I have Logitech Z-680 5. speaker setup. Before the upgrade in drivers, my settings were w

  • AirPort Express set up for Outdoor Speakers

    I need some advice from those who have used AirPort Express to drive music to a pair of outdoor speakers...I currently have my outdoor speakers (Def Tech AW6500s) set up to my home theatre receiver "B" speakers...When I listen to my music through App

  • Distorted display problem

    When I open a raw NEF file in elements 9, I get this message. "Camera raw requires a minimum display resolution of 1024x768. Your display is set to a lower resolution. Continue anyway?" My display is always set at 1280x720 and I've tried every other

  • Creating PHP services for client applications

    This question was posted in response to the following article: http://help.adobe.com/en_US/Flex/4.0/FlexTutorials/WS4bebcd66a74275c3-177557f11232f6db7fc- 8000.html