RE: ActionForm methods Naming Conventions - Urgent

2003-02-10 Thread Sri Sankaran
I don't see how the *name* of a method can lead to an exception.  Secondly why are you 
getting a *NumberFormatException*.  Aren't all your ActionForm properties String 
types?  (Refer to the countless discussions on this subject for its virtues)

All that being said, remember that unless otherwise coerced, JavaBeans introspector 
looks at the first two letters of a property to determine the capitalization rules.  I 
don't know if this has any bearing on your problem.

Sri

-Original Message-
From: ashokd [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 01, 2002 7:17 PM
To: Struts Users Mailing List
Subject: ActionForm methods Naming Conventions - Urgent


Hi,

Their is any naming conventions for ActionForm methods ?

I got a problem with this.

First I used like below then I got the problem(NumberFormatException:
getTName()
setTName()

Later I changed to 

getTableName();
setTableName();

By using above two method names the exception gone.

Any one can help on this.

Thanks & Regards,
Ashok.D

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: ActionForm methods Naming Conventions - Urgent

2003-02-10 Thread Iris
When you have
String getTName()
void setTName(String tName)
in your ActionForm, you use them in your JSP like



This help you ?

Iris

ashokd wrote:


Hi,

Their is any naming conventions for ActionForm methods ?

I got a problem with this.

First I used like below then I got the problem(NumberFormatException:
getTName()
setTName()

Later I changed to 

getTableName();
setTableName();

By using above two method names the exception gone.

Any one can help on this.

Thanks & Regards,
Ashok.D

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]