Hi,
I don't know what  you really need.Here I have copied some code as I thought
you need like this.
<html>
<head>
<title>Main Menu</title>
<script language="JavaScript">
function setCmd(value) {
  document.menu.cmd.value = value;
  </script>
</head>
<body bgcolor="white">
<form name="menu" action="" method="post">
<input type="hidden" name="cmd" value="">
<table border="1" align="center">
<tr><td>
<table>
<tr><th> Main Menu</th></tr>
<tr><td align="center">
<%String variable1="something1";
     String variable2="something2";
     String variable3="something3";
%>
<input type="submit" value="submenu1"
onClick="setCmd('<%=variable1%>')"></td></tr>
<tr><td align="center">
<input type="submit" value="submenu2"
onClick="setCmd('<%=variable2%>')"></td></tr>
<tr><td align="center">
<input type="submit" value="submenu3"
onClick="setCmd('<%=variable3%')"></td></tr>
</table>
</td></tr>
</table>
</form>
</body>
</html>

regards
Jansi

----- Original Message -----
From: Narayanaswamy, Kumaran (CTS) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 24, 2000 9:51 PM
Subject: Query Regarding JSP and JavaScript


> Hi,
> I have an requirement,The requirement is as follows
> One of my Variable gets populated in the JSP Part and i want to pass this
> variable to the JavaScirpt
> <html><head>
> <script language="javascript>
>         function hello()
>         {
>                 form.text.value = variab (The value for this variable shd
be
> populated in the JSP down the page
>         }
>
> </head>
> <%
>         The value for the Varibale variab shd get populated here and i
have
> to pass it to the Script
>
> %>
> </html>
>
> Can anyone help me in doing this
> Thanks
>
>
> with regards,
> Kumaran
>
>
> This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged
information.
> If you are not the intended recipient, please contact the sender by reply
e-mail and destroy all copies of the original message.
> Any unauthorised review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on this
e-mail is strictly
> prohibited and may be unlawful.
>
>                 Visit us at http://www.cognizant.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to