This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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()"
jQuery in Action, 2nd edition
subject: about multibutton submit
Similar Threads
simple jsp scriplet question
Passing Parameters through JSP
hitting the enter on the keyBoard should default to "YES" button on the html/jsp page
Save form data to server hard disk via JSP
Radio button value with submit