How to retrieve array parameter ( JAVA )

Discussion in 'Software' started by naruponk, Apr 9, 2009.

  1. naruponk

    naruponk

    Joined:
    Apr 9, 2009
    Messages:
    1
    Code:
    public ModelAndView handleRequest(HttpServletRequest req,
    			HttpServletResponse res) throws Exception{
    Code:
    String p[] = req.getParameter("pArray");
    I can't compile, I also try casting by (String[]) but result is same
    how can I retrieve array parameter ?
    naruponk, Apr 9, 2009
    #1
    1. Advertising

  2. naruponk

    susith

    Joined:
    Feb 25, 2009
    Messages:
    16
    normally request get (Strings) objects. It depends on how do you post (call)it. How do you send array of data. If serialized format, cast it.
    susith, Apr 16, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. wylbur37
    Replies:
    1
    Views:
    517
    Hywel Jenkins
    Jan 2, 2004
  2. wylbur37
    Replies:
    1
    Views:
    519
    Michael C.
    Jun 5, 2004
  3. =?Utf-8?B?QnJlYWQtdGVhc2Vy?=

    Networking parameter

    =?Utf-8?B?QnJlYWQtdGVhc2Vy?=, Apr 23, 2006, in forum: MCSE
    Replies:
    49
    Views:
    1,362
    Bigus Di┬ękus
    Apr 27, 2006
  4. amrutha0303
    Replies:
    0
    Views:
    981
    amrutha0303
    Aug 3, 2010
  5. amrutha0303
    Replies:
    0
    Views:
    2,124
    amrutha0303
    Aug 3, 2010
Loading...

Share This Page