File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "about multibutton submit" Watch "about multibutton submit" New topic
Author

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: about multibutton submit
 
Similar Threads
simple jsp scriplet question
Save form data to server hard disk via JSP
Radio button value with submit
Passing Parameters through JSP
hitting the enter on the keyBoard should default to "YES" button on the html/jsp page