gerrygerry
Technical User
Hi everyone-
I'm just really getting into JSP's... I come from a strong PHP background. I know in PHP you can accept arrays from forms... I wonder if there is a way in Java? Here's an example of the sort of form I'd like to b able to use...
In PHP, $field would be an array... right off the bat. In JSP, is there some sort of type-casting I can do?? Something like
??
I'm trying to put together a hotmail style "delete row where checked" interface... but I need to be able to set up my JSP to accept any number of inputs... is that clear? Can someone make some recommendations?
Thanks in advance! -gerrygerry
"I'm doin' a one-nighter for bitin' Ed the mail man... the guy was tryin' to cast a spell on me... like a wizard or something."
"Are you sure about that?"
"I dunno... maybe he was just wavin'
..."
I'm just really getting into JSP's... I come from a strong PHP background. I know in PHP you can accept arrays from forms... I wonder if there is a way in Java? Here's an example of the sort of form I'd like to b able to use...
Code:
-[myForm.htm]-
Code:
...
<form action="myJSP.jsp" method="post">
<input type="checkbox" name="field[]" value="1" />
<input type="checkbox" name="field[]" value="2" />
<input type="checkbox" name="field[]" value="3" />
<input type="submit" />
</form>
...
Code:
Hashtable myFields = (Hashtable) request.getParameter("field");
I'm trying to put together a hotmail style "delete row where checked" interface... but I need to be able to set up my JSP to accept any number of inputs... is that clear? Can someone make some recommendations?
Thanks in advance! -gerrygerry
"I'm doin' a one-nighter for bitin' Ed the mail man... the guy was tryin' to cast a spell on me... like a wizard or something."
"Are you sure about that?"
"I dunno... maybe he was just wavin'
![[wavey] [wavey] [wavey]](/data/assets/smilies/wavey.gif)