splitting parameter names as in PHP

Newbie Member
28Jul2010,17:02   #1
ororo's Avatar
Dear all,
I am new to JSP and I was used programming in PHP.
In PHP, there is a useful feature: names of parameters are correctly splitted, so that

<input name="myvar[1]" ...>
<input name="myvar[2]" ...>

generates correctly the array
$_REQUEST['myvar']
with entries [1] and [2]

while in JSP I can only see two different parameters:

request.getParameter('myvar[1]')
request.getParameter('myvar[2]')

So, my answer is, is there any way to access the array
request.getParameter('myvar')
????

Thank you.
Newbie Member
28Jul2010,17:30   #2
ororo's Avatar
EDIT: Sorry, "my question", and not "my answer"