Well here's some additional information that might help!
The doStartTag() in RadioTag.java is little bit more picky than the one
in TextTag.java. It does a few more checks as follows;
public int doStartTag() throws JspException {
// Acquire the current value of the appropriate field
Object current = null;
Object bean = pageContext.findAttribute(name);
if (bean == null)
throw new JspException
(messages.getMessage("getter.bean", name));
try {
current = BeanUtils.getProperty(bean, property);
if (current == null)
current = "";
} catch (IllegalAccessException e) {
throw new JspException
(messages.getMessage("getter.access", property, name));
} catch (InvocationTargetException e) {
Throwable t = e.getTargetException();
throw new JspException
(messages.getMessage("getter.result",
property, t.toString()));
} catch (NoSuchMethodException e) {
throw new JspException
(messages.getMessage("getter.method", property, name));
}
Looks like you are running into the 'NoSuchMethodException', because it
is looking for 'routingCode' in 'org.apache.struts.taglib.html.BEAN' when
it should really look into your WireTransferForm.
Don't know if this information will help!
Cheers,
- Ajay
PS: As for the 'Ajay Chitre' from MorganStanley.com --- well, if you liked
him then - yes, I am! If you didn't then no I am not :) :)
>-- Original Message --
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>From: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: RE: Struts reflection can't find getters on form bean
>Date: Thu, 25 Apr 2002 14:11:14 -0700
>
>
>Hi Ajay,
>
>No, I've no <jsp:useBean> tags anywhere. 'name="wireTransferForm"' is
in
>my
><action-mapping> in struts-config.xml, and I've no "name" attribute in
my
><form> element in the JSP.
>
>Cheers,
>David
>
>P.S. I knew an Ajay Chitre who worket at MoganStanley.com. Are you the
>same?
>
>-----Original Message-----
>From: Ajay Chitre [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, April 25, 2002 2:08 PM
>To: Struts Users Mailing List
>Subject: RE: Struts reflection can't find getters on form bean
>
>David,
>
>Do you have
>
><jsp:useBean...
>
>that maps to your WireTransferForm? In addition to name="wireTransferForm".
>
>
>>-- Original Message --
>>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>From: [EMAIL PROTECTED]
>>To: [EMAIL PROTECTED]
>>Subject: RE: Struts reflection can't find getters on form bean
>>Date: Thu, 25 Apr 2002 13:54:52 -0700
>>
>>
>>In either case, the tag has a "value" attribute, both when I make it
>><html:radio> and <html:text>.
>>
>>-----Original Message-----
>>From: Pedone, Tim [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, April 25, 2002 1:42 PM
>>To: 'Struts Users Mailing List'
>>Subject: RE: Struts reflection can't find getters on form bean
>>
>>According to the docs, the "value" property is required for radio tags
>but
>>not for text tags so if your tag does not have the "value" property, then
>>changing the type from radio to text would work, changing from text to
>radio
>>would not.
>>
>>Tim
>>
>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, April 25, 2002 1:31 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: Struts reflection can't find getters on form bean
>>
>>
>>Hmmm. I tried setting the "name" attribute as you suggest, but got an
>error
>>about not being able to find the bean in scope "null". That's a problem,
>>since <html:text> doesn't have a "scope" attribute.
>>
>>Nevertheless, it acts as if it finds the bean, but doesn't find the
>>property.
>>
>>-----Original Message-----
>>From: Leonardo Maciel [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, April 25, 2002 12:01 PM
>>To: 'Struts Users Mailing List'
>>Subject: RE: Struts reflection can't find getters on form bean
>>
>>It looks like it is not find the bean associated with the form.
>>Try to set the form name on html:text and html:radio
>>
>>i.e. <html:text name="formName" property="theProperty" />
>>
>>
>>
>>
>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, April 25, 2002 2:59 PM
>>To: [EMAIL PROTECTED]
>>Subject: Struts reflection can't find getters on form bean
>>
>>
>>Hello,
>>
>>
>>
>>I'm having the weirdest problem with Struts. When rendering a JSP using
>>the
>><html:> custom tags, Struts can't find some of the getters on the form
>bean.
>>In particular, it's when using <html:radio>. In my form bean
>>wireTransferForm, which corresponds to the Java class WireTransferForm,
>I
>>have properties transferType and routingType, both of which are Strings.
>> If
>>I access these in the <html:form> using <html:text>, no problem. If I
>>access them using <html:radio>, I get the error:
>>
>>javax.servlet.jsp.JspException: No getter method for property routingCode
>>of
>>bean org.apache.struts.taglib.html.BEAN.
>>
>>
>>
>>What is going on here? Why would I be able to access a property with
>><html:text> and not with <html:radio>?
>>
>>
>>
>>Thanks!
>>
>>David
>>
>>
>>
>>David A. Ventimiglia
>>
>>Wells Fargo Private Client Services
>>
>>(415) 396-0414 (work)
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>
>>--
>>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>>
>
>Ajay Chitre
>
>Diligent Team, Inc.
>(Where Diligent People Work as a Team)
>
>http://www.DiligentTeam.com
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>