This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes about multibutton submit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "about multibutton submit" Watch "about multibutton submit" New topic

about multibutton submit

qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147
Hey! everyone.
I have some question about submit,I have gotten a Nodelist by parsing xml string,I construct lots of button who own name+i and value,when I click one of them,I hope I can send this value to Servlet.
I wonder if anyone is familiar with it and could give mi some advice on
how to do it.

Thanks...qingwu<br />When I open my eyes,I see your pretty face.
qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147
on the other side,Im unwilling using javascript statement.
Ankit C

Joined: Sep 25, 2002
Posts: 2
Its very easy, you have to use in your button
<input type="submit" value="yourValue" name="yourName"/>
qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147
Thank you very much!
If I use button type,can I implement it?
Juanjo Bazan
Ranch Hand

Joined: Feb 04, 2002
Posts: 231
Try to make your questions in the correct forum, this topic belongs to HTML/Javascript.
BTW, try:
input type="button" value="yourValue"
and add an onclick event: "submit()"
I agree. Here's the link:
subject: about multibutton submit
It's not a secret anymore!