• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to retrive the Value sent through JavaScript function

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 :





 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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())

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic