Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-27-2007, 05:00 AM
Member
 
Join Date: Nov 2007
Posts: 3
swapnanair is on a distinguished road
property for radio buttons
I am using struts, while designing a jsp page i am getting an error.
For radio buttons i wrote

<html:radio property="xxx" value="yes">yes</html:radio>
<html:radio property="xxx" value="no">no</html:radio>

but when i try to get this value

alert(document.forms[0].elements['xxx'].value);

i am getting as undefined.can any one help me regarding this one as how to define radio buttons with same property in struts
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-03-2007, 07:06 AM
Member
 
Join Date: Dec 2007
Posts: 1
achillesheel is on a distinguished road
id attribute value should be used in javascript...

<html:radio property="xxx" value="yes" id="idname">yes</html:radio>

alert(document.forms[0].elements['idname'].value);

try this..
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-03-2007, 09:39 AM
Member
 
Join Date: Nov 2007
Posts: 3
swapnanair is on a distinguished road
First of all thanks for ur reply,i have already tried with id but still i am unable to get the value.

errorrg.apache.jasper.JasperException: /jsp/login/ProjectStudyCrop.jsp(56,8) Attribute id invalid for tag radio according to TLD
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Radio button AJG New To Java 0 04-07-2008 09:37 PM
Setting the label of radio buttons from Resource bundle rajeeshankar JavaServer Faces 0 12-17-2007 10:23 AM
Radio button values are not lose chockalingam JavaServer Pages (JSP) and JSTL 0 12-03-2007 09:14 AM
Non functional radio buttons and messed up array flameofSuzaku New To Java 0 11-25-2007 11:01 PM
Next, Finish Buttons !!! pele SWT / JFace 1 07-14-2007 06:22 PM


All times are GMT +3. The time now is 05:15 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org