How do I do the function for the javascript
Main Topics
Browse All TopicsHow do I manage to submit to 4 different .do actions when I have four different buttons.
On submitting the page by clicking edit - it should go to edit.do
On submitting the page by clicking update - it should go to update.do
On submitting the page by clicking New - it should go to new.do
On submitting the page by clicking delete - it should go to delete.do
How do I do it to submit the action by post method. Could somebody help
Here is the jsp page code
<html>
<head>
<title>Management</title>
</head>
<body topmargin="0" bgcolor ="#CCCCCC">
<form>
<!-- Start header content -->
<table width= "100%" align="center" >
<tr>
<td height="90" align="center" margin="0" background="images/header.
</tr>
</table>
<table bgcolor='#488AC7' topmargin="0" width="100%" border="0" cellpadding="0" >
<tr>
<td align="left" valign="middle" bgcolor='#488AC7'><span class="topnav"><font color='white' ><b>Welcome Member!</b></font> </
<td align="right" valign="middle" bgcolor='#488AC7'><span class="topnav"><a href="logoff.do" class="topnav"><font color='white' ><b>Logoff</b></font></a>&
</tr>
</table>
<table width="100%" bgcolor='#488AC7' topmargin="0" width="100%" border="1" cellspacing="0">
<tr>
<td width="5%" align="center" class="tabletext">Select</
<td width="15%" align="center" class="tabletext">Code</td
<td width="45%" align="center" class="tabletext" >Description</td>
<td width="15%" align="center" class="tabletext">Represen
<td width="10%" align="center" class="tabletext" >Date</td>
<td width="10%" align="center" class="tabletext" >Time</td>
</tr>
<tr>
<td><div align="center">
<input type="checkbox" name="checkbox" value="0">
</div></td>
<td align="center">a11</td><td
<tr>
<td><div align="center">
<input type="checkbox" name="checkbox" value="0">
</div></td>
<td align="center">a12</td><td
</table>
<table width="100%" bgcolor='#488AC7' topmargin="0" width="100%" border="1" cellspacing="0">
<tr>
<td><div align="center">
<input type="submit" name="Edit" value="Edit">
<input type="submit" name="Update" value="Update">
<input type="submit" name="New" value="New">
<input type="submit" name="Delete" value="Delete">
<input type="submit" name="Menu" value="Menu">
</tr>
</table>
</form>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: CEHJPosted on 2007-01-05 at 05:49:04ID: 18251065
2 ways:
a. 4 separate forms
b. set the action of the form in javascript