SunQuest
           Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old January 14th, 2001, 06:45 AM
Borasal Borasal is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: Ankara,Etlik,TURKEY
Posts: 0 Borasal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Borasal
Exclamation

hello,
please help me immediately for my project. I wonder if it is possible to get 2 values from radiobutton's value property?
For example, i have GradeKind and GradeKindNo values. i put these in a radio button. and when it is chosen, i want them to go to another servlet. How can i make it?
is it possible to use value=' "+GradeKind+""+GradeKindNo+" ' and to get them from the other servlet with request.getString(?). What will i write instead of question mark to get both these values? Must i use string concatenating?

Please answer this immediately,

Thanks
Comments on this post
Gran Roguismo agrees!

Reply With Quote
  #2  
Old January 15th, 2001, 11:48 AM
dfparker dfparker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 0 dfparker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to dfparker Send a message via Yahoo to dfparker
It's more efficient to return code in javascript as subroutine and then pass it to java. There are at least two ways to accomplish this:

1a) ... onClick="values(x); values(y)"> where values is a function on the page somewhere that processes values()

1b) onClick="allValues(x,y,z)"> where allValues is a function that accepts and process any number of values; e.g., for(var i = 0; i < args.length; i++) { ... do something }

Or pass it directly to an applet that passes it to a servlet
2) onClick="document.applets[0].routineName(this.value, anotherValue, value3, ...)">

Or submit the page to the servlet with multiple delimited values which may be parsed. The servlet can then do something and return or continue to another page.

3) onClick="this.value=value0+'~'+value1+'~'...; submit">

Good luck

[Edited by dfparker on 01-15-2001 at 10:53 AM]

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Immediately!!! Is it possible to get 2 values from radiobutton's value ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway