Something like this
In Form
<input type="submit" value="START" name="start">
<input type="submit" value="STOP" name="stop">
In servlet
String sValueStart = request.getParameter("start"); //The one clicked will
have a value
String sValueStop = request.getParameter("stop"); //The one clicked will
have a value
Write reponse to Text Area etc...
----- Original Message -----
From: "Teh Noranis Mohd Aris" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Thursday, March 29, 2007 4:23 AM
Subject: Is it possible to have more than one submit button in a JSP file?
Dear All,
I hope all of you can still remember me. I had the problem of writing the
file content from an applet to a servlet. Now, I'm using JSP and it works.
However, from JSP code examples, I always see only one submit button to
the server. I would like my system to have several submit buttons that is
connected to the server, for example a button for displaying a file from
the server and a button for saving a file to the server. The file to
display and the file to save should use the same textarea. How should it
be done? If there are any source code examples, can anyone please post it
to me? Please help! Thank you.
Yours Sincerely,
TEH NORANIS
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]