Hi,
I don't see any JavaScript in Your mail :-).
But why not read the radio button value in servlet B
with:
reqest.getParameterValues("radiobuttonname")[0];
or reqest.getParameter("radiobuttonname");
If the problem is more complicated than that let me know.
Best wishes,
Andras.
----- Original Message -----
From: manoj kumar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 16, 1999 8:48 AM
Subject: passing valuees from javascript to servlets
> The scenario of my problem is:
>
> Upon clicking a link in a HTML page, a servlet(say, A) is called, which in
> turn fetches some rows from a database and returns the same to the browser
> via dynamically generated HTML page. This dynamically HTML generated page
> presents some options (radio buttons) to the user.
> Upon, selecting a particular option, when the submit button is clicked, I
> need that another servlet (say, B) be called (or may be the same
> servlet(A)).This servlet B accees the databse a performs a query on the
> databse depending upon the option selected by the user in the previously
> dynamically generated HTML page.
> The query is something like this:
>
> select col1 from abc where col2=value
>
> The 'value ' in the above SQL statement is something which should
correspond
> to the option selected by the user.
> How do I go about it?
> Should I use 2 servlets or one would suffice.
>
> An urgent response is highly appreciated.
>
>
> Thanks in advance,
>
>
>
> Manoj
>
>
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html