aspose file tools*
The moose likes JSP and the fly likes Pass Value From JavaSript function to JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Pass Value From JavaSript function to JSP page" Watch "Pass Value From JavaSript function to JSP page" New topic
Author

Pass Value From JavaSript function to JSP page

amir thakur
Greenhorn

Joined: Jul 09, 2009
Posts: 11
here's my code

here in above code iam geting the value of radio buttons which are coming from data base..
this code is running without any problem and show the value in the alert statment.
when i run it..
This whole code is in jsp page and i am using Javascript function for grouped radio button validation.
but now the problem is

how can i send the value of this var ch into an another JSP page...

what should i do before or after alert statement.

Do reply....
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61652
    
  67

I fixed your code tags, but the code is still a mess. You may want to go in an format it nicely.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Chris Hurst
Ranch Hand

Joined: Oct 26, 2003
Posts: 418
    
    2

When you generate the URL for your new page request construct the URL with ch on the end as a parameter your new JSP can read ?ch=5 (or similar , other methods exist).

It would have helped if you had given us an example of where you request your next page.


"Eagles may soar but weasels don't get sucked into jet engines" SCJP 1.6, SCWCD 1.4, SCJD 1.5,SCBCD 5
amir thakur
Greenhorn

Joined: Jul 09, 2009
Posts: 11
here's an example i want to send the ch=5 value to my index.jsp
Page so can you please tell me how to append this value to url of my index.jsp page.....

its nice if you tell me the code how to append this ch value....
and also tell me how to get this ch value into my index.jsp page
amir thakur
Greenhorn

Joined: Jul 09, 2009
Posts: 11
what happen may any one help me to solve this above query......
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

/index.jsp?ch=5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pass Value From JavaSript function to JSP page