struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Book <cb...@rim.net>
Subject RE: html:radio problems
Date Fri, 30 Nov 2001 22:02:58 GMT
I'm sure I have both get and set methods for name and flag.  I acutally have
about 20 fields, and all the other types work except for 3 sets of radio
buttons (I've checked that both setters and getters are always there).

Chris

-----Original Message-----
From: Mimpin Halim [Lucas] [mailto:lucas@rainbows.net]
Sent: Friday, November 30, 2001 4:46 PM
To: Struts Users Mailing List
Subject: RE: html:radio problems


Hi Chris,

Make sure you have getFlag() and setFlag() methods in your User bean. The
error says that it can't find the getFlag() method. In the example you gave
for property="name", I'm sure you have getName() and setName methods in your
User bean.

Hope this helps,

Lucas


>>-----Original Message-----
>>From: Christopher Book [mailto:cbook@rim.net]
>>Sent: Friday, November 30, 2001 11:36 AM
>>To: 'struts-user@jakarta.apache.org'
>>Subject: html:radio problems
>>
>>
>>Hi,
>>
>>I'm having a problem using the html:radio tag using another bean.
>>
>>For my text fields, I define an object bean called "User" and set
>>the value
>>using:
>><html:text name="User" property="name"/>
>>
>>This sets the value of the text field to whatever the getName()
>>method of my
>>form returns.
>>
>>When I try to do the same thing with my radio buttons:
>><html:radio name="User" property="flag" value="TRUE"/> true
>><html:radio name="User" property="flag" value="FALSE"/> false
>>
>>I get the following exception:
>>javax.servlet.ServletException: No getter method available for
>>property flag
>>for bean under name User
>>
>>I can use text boxes, selects, and textareas using this method
>>and they all
>>work properly, so why does this not work with radio buttons?
>>
>>Chris Book
>>
>>--
>>To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message