Results 1 to 2 of 2

Thread: How to send and receive text box value send along with multipart form data

  1. #1
    Join Date
    May 2008
    Location
    Colombo, Sri Lanka
    Posts
    19

    Unhappy How to send and receive text box value send along with multipart form data

    Hi All,

    I will explain my issue to you all to get some idea,

    I want to send some text box data value along with the multipart data(i.e uploaded file ). My question is how we can retrieve those data in server side.

    I have done file uploaded example very successfully, but it sends only multipart data. so how can I send both multipart data and normal text box data and retrieve those data from the server.

    Can anyone help me to solve my problem.

    Thanx in advance.

    Regards,
    Rumesh

  2. #2
    Join Date
    Jan 2007
    Location
    Orlando, FL USA
    Posts
    84

    Default

    Hum... multipart data means "multiparts"! so there is no reason you can't get the seperated parameters along with your file upload.

    If you used Spring MultipartResolver, then you will have instance of MultipartHttpServletRequest. That class have getParameter method that let you retrieve any parameter name you have in a form.

    See
    http://static.springframework.org/sp...tResolver.html
    http://www.jroller.com/thebugslayer - notes on java, scala and other development stuff.

Posting Permissions

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