Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > How to retrieve array parameter ( JAVA )

Reply
Thread Tools

How to retrieve array parameter ( JAVA )

 
 
naruponk naruponk is offline
Junior Member
Join Date: Apr 2009
Posts: 3
 
      04-09-2009
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 ?
 
Reply With Quote
 
 
 
 
susith susith is offline
Junior Member
Join Date: Feb 2009
Posts: 20
 
      04-16-2009
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
how to use Net::HTTP.get to retrieve passed parameter? David Street Ruby 1 08-13-2009 06:05 PM
Retrieve Parameter Value from Disabled Input Sisilla Java 2 03-05-2008 07:20 PM
Retrieve Identity Column via Insert Parameter jefftheman812 ASP .Net 0 11-14-2006 07:47 PM
Re: How to retrieve an Output Parameter using SQLDataSource Control Karl ASP .Net 2 09-07-2004 10:26 PM



Advertisments