*
The moose likes JSP and the fly likes Not able to retrive the Value sent through JavaScript function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Not able to retrive the Value sent through JavaScript function " Watch "Not able to retrive the Value sent through JavaScript function " New topic
Author

Not able to retrive the Value sent through JavaScript function

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

I am trying to send the checked Radio Button value from a Java Script function to an another JSP Page , in which i am trying to retrive using request.getParameter("result")

But every time this is resulting in a null value . Please help me .

Waiting for your precious replies .

Please help me if i am doing anything wrong here .This is my code here :This seems a simple question , but i am not able to do this .




Inside the CompleteNetwork2.jsp i am using this :






Save India From Corruption - Anna Hazare.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Basically what the problem is that your form is posted using get method. So the query string that you append to the form action is replaced by the query string generated by the browser. Now first of all what I don't understand is why are you using javascript to implement this. You can simply set the name of the radio buttons to result and no javascript will be needed (except for the call to window.close())



SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

You can simply set the name of the radio buttons to result and no javascript will be needed



Ankit , thank you for response , but i did not get it what you mean .

Do You mean to say


"
 
wood burning stoves
 
subject: Not able to retrive the Value sent through JavaScript function
 
Similar Threads
how to invoke method based on radio button select
send values from javascript to servlet
Help
setting a radio button
Cache Problem in Jsp...