Results 1 to 2 of 2
  1. #1
    Albert is offline Senior Member
    Join Date
    Jun 2007
    Posts
    114
    Rep Power
    0

    Default Help with request.getParameter()

    Hello. I am experiencing problems in my form.

    I have many textfields and I am saying request.getParameter("..") in some action.

    I also have a fileupload in the same form and trying to read it from the same action.

    But it seems that none of my request.getParameter() work.
    They all become null. But If I remove the fileupload stuff it works fine.
    So my question is.
    Can you use fileupload and textfields in the same form? Or do I need to separate the handling in to different forms and actions?

    Thanks
    Albert:rolleyes:

  2. #2
    susan is offline Member
    Join Date
    Jul 2007
    Posts
    44
    Rep Power
    0

    Default

    Yes, you can. If you post some code we may be able to help debug what is going on (I'm assuming you are using JSP coupled with a servlet).

    If you don't want to one example of doing this can be found here:

    JSP Example: File Uploading

Similar Threads

  1. [SOLVED] http request
    By Eranga in forum Advanced Java
    Replies: 30
    Last Post: 11-27-2008, 05:35 AM
  2. respose with out request
    By karthikiniyan in forum Java Servlet
    Replies: 1
    Last Post: 04-09-2008, 04:06 PM
  3. How to use request Scope in Spring
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-31-2008, 11:06 AM
  4. Generate XML request from web form
    By sabatier in forum XML
    Replies: 1
    Last Post: 08-09-2007, 08:53 PM
  5. HttpServletRequest request size
    By Ed in forum Java Servlet
    Replies: 2
    Last Post: 07-02-2007, 03:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •