splitting parameter names as in PHP

ororo's Avatar, Join Date: Jul 2010
Newbie Member
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.
ororo's Avatar, Join Date: Jul 2010
Newbie Member
EDIT: Sorry, "my question", and not "my answer"