jsp parameters pass more than one value to the handler
Joyce Hughes
Greenhorn
Joined: Feb 24, 2007
Posts: 7
posted
0
Hi, I have a jsp page that has three buttons that the user can click. The value is then passed to a javascript function where it sends it to a Request Handler. When I click on one, it still passes all three to the handler. Can someone look at my code and tell me what the problem is?
part of the code is below:
<%
final String buttonAction_AllPatients = "ALL PATIENTS";
final String buttonAction_MyPatients = "MY PATIENTS";
final String buttonAction_MyClinics = "MY CLINICS";
%>
<html>
<head>
<title>My Patients Admitted or Discharged within the Last 72 hours</title>
<script type="text/javascript" src="../js/common.js"></script>
<link rel="stylesheet" href="../stylesheets/main.css" type="text/css">
<script LANGUAGE="javascript" type="text/javascript">
function submit_onclick(action)
{
//alert("action="+action);
// VALIDATE SELECTIONS...
var ok = "YES";
Joyce Hughes wrote:Can someone look at my code and tell me what the problem is?
That's way too much unformatted code to look at.
Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the button on your post.