RE: Urgent: No Getter Method found

2003-09-26 Thread Karr, David
> -Original Message-
> From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] 
> 
> txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]: 
> javax.servlet.jsp.JspException: No getter method for property 
> txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN
> 
> i have following code in the Action Clas...  still i am 
> getting the error please Sugest solution for this...
> 
>  public String getTxtUserGroupCode()
>  {
>   return this.txtusergroupcode ;
>  }
> 
>  public void setTxtUserGroupCode(String s)
>  {
>   this.txtusergroupcode = s ;
>  }

There are two clues here.  First, the fact that it says the bean is
"org.apache.struts.taglib.html.BEAN" means that you haven't associated
the reference with an existing ActionForm or bean.  Second, these
accessors have to go in your ActionForm or bean class, not in the Action
class.

The name of your instance variable is irrelevant (in reference to other
responses to this question).

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



[SOLVED]Re: Urgent: No Getter Method found

2003-09-26 Thread Abhijeet Mahalkar
Hi ALL ,
I got the solution for this. I removed all the gettter setters and Variables from the 
Action class.
and now error was because of wrong mapping in struts-config file..

thanks 4 co-operation

abhijeet

- Original Message - 
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 12:36 PM
Subject: RE: Urgent: No Getter Method found 


I dont understand what the name of the instance variable used internally in
the class as got to do with the error he is getting (which results from a
failed introspection attempt to find a getter method)? Surely he could call
the internal variable (which I presume is protected or private) "bob" if he
liked and it should still work?

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 14:51
To: Struts Users Mailing List
Subject: RE: Urgent: No Getter Method found


change the variable txtusergroupcode to txtUserGroupCode. it will work.

|-Original Message-
|From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
|Sent: Friday, September 26, 2003 12:13 PM
|To: Struts Users Mailing List
|Subject: Urgent: No Getter Method found
|
|
|hi All
|I am getting following error while invoking JSP file ..
|
|
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]:
|javax.servlet.jsp.JspException: No getter method for property
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN
|
|i have following code in the Action Clas...  still i am getting
|the error please Sugest solution for this...
|
|
|
| public String getTxtUserGroupCode()
| {
|  return this.txtusergroupcode ;
| }
|
| public void setTxtUserGroupCode(String s)
| {
|  this.txtusergroupcode = s ;
| }
|
|

-
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]



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



RE: Urgent: No Getter Method found

2003-09-26 Thread Andrew Hill
I dont understand what the name of the instance variable used internally in
the class as got to do with the error he is getting (which results from a
failed introspection attempt to find a getter method)? Surely he could call
the internal variable (which I presume is protected or private) "bob" if he
liked and it should still work?

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 14:51
To: Struts Users Mailing List
Subject: RE: Urgent: No Getter Method found


change the variable txtusergroupcode to txtUserGroupCode. it will work.

|-Original Message-
|From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
|Sent: Friday, September 26, 2003 12:13 PM
|To: Struts Users Mailing List
|Subject: Urgent: No Getter Method found
|
|
|hi All
|I am getting following error while invoking JSP file ..
|
|
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]:
|javax.servlet.jsp.JspException: No getter method for property
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN
|
|i have following code in the Action Clas...  still i am getting
|the error please Sugest solution for this...
|
|
|
| public String getTxtUserGroupCode()
| {
|  return this.txtusergroupcode ;
| }
|
| public void setTxtUserGroupCode(String s)
| {
|  this.txtusergroupcode = s ;
| }
|
|

-
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: Urgent: No Getter Method found

2003-09-26 Thread Andrew Hill
1. Dont mark you messages urgent if you hope to get a response (a lot of the
list members autotrash such posts!)
(See: http://www.catb.org/~esr/faqs/smart-questions.html#urgent )

2. Why are you putting the getter and setter in the Action class? They
should surely be in the appropriate ActionForm class.

3. If they _are_ in the ActionForm class then you should check that you dont
have any other methods with the same name as your getter and setter taking
or returning different parameter types. Unfortunately overloading getters
and setters doesnt work as the BeanUtils can get all confused (a major PITA
IMHO but greater minds than I will tell you thats how its defined in the
bean specs...).
(See: http://marc.theaimsgroup.com/?l=struts-user&m=102716130711687&w=2 for
an ancient thread covering this topic)

-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 14:43
To: Struts Users Mailing List
Subject: Urgent: No Getter Method found


hi All
I am getting following error while invoking JSP file ..


txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]:
javax.servlet.jsp.JspException: No getter method for property
txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN

i have following code in the Action Clas...  still i am getting the error
please Sugest solution for this...



 public String getTxtUserGroupCode()
 {
  return this.txtusergroupcode ;
 }

 public void setTxtUserGroupCode(String s)
 {
  this.txtusergroupcode = s ;
 }



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



RE: Urgent: No Getter Method found

2003-09-25 Thread hari_s
Change u with U for variable txtusergroupcode

-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 1:43 PM
To: Struts Users Mailing List
Subject: Urgent: No Getter Method found 

hi All
I am getting following error while invoking JSP file ..


txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]:
javax.servlet.jsp.JspException: No getter method for property
txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN

i have following code in the Action Clas...  still i am getting the
error please Sugest solution for this...



 public String getTxtUserGroupCode()
 {
  return this.txtusergroupcode ;
 }

 public void setTxtUserGroupCode(String s)
 {
  this.txtusergroupcode = s ;
 }



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



Re: Urgent: No Getter Method found

2003-09-25 Thread Abhijeet Mahalkar
Do i need to chnage  entries name also from struts-config asd well as jsp 
file

thanks for reply...
abhijeet
- Original Message - 
From: "Navjot Singh" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 12:21 PM
Subject: RE: Urgent: No Getter Method found 


change the variable txtusergroupcode to txtUserGroupCode. it will work.

|-Original Message-
|From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
|Sent: Friday, September 26, 2003 12:13 PM
|To: Struts Users Mailing List
|Subject: Urgent: No Getter Method found 
|
|
|hi All
|I am getting following error while invoking JSP file ..
|
|
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]: 
|javax.servlet.jsp.JspException: No getter method for property 
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN
|
|i have following code in the Action Clas...  still i am getting 
|the error please Sugest solution for this...
|
|
|
| public String getTxtUserGroupCode()
| {
|  return this.txtusergroupcode ;
| }
|
| public void setTxtUserGroupCode(String s)
| {
|  this.txtusergroupcode = s ;
| }
|
|

-
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: Urgent: No Getter Method found

2003-09-25 Thread Navjot Singh
change the variable txtusergroupcode to txtUserGroupCode. it will work.

|-Original Message-
|From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
|Sent: Friday, September 26, 2003 12:13 PM
|To: Struts Users Mailing List
|Subject: Urgent: No Getter Method found 
|
|
|hi All
|I am getting following error while invoking JSP file ..
|
|
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]: 
|javax.servlet.jsp.JspException: No getter method for property 
|txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN
|
|i have following code in the Action Clas...  still i am getting 
|the error please Sugest solution for this...
|
|
|
| public String getTxtUserGroupCode()
| {
|  return this.txtusergroupcode ;
| }
|
| public void setTxtUserGroupCode(String s)
| {
|  this.txtusergroupcode = s ;
| }
|
|

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



Urgent: No Getter Method found

2003-09-25 Thread Abhijeet Mahalkar
hi All
I am getting following error while invoking JSP file ..


txtUserGroupCode of bean org.apache.struts.taglib.html.BEAN]: 
javax.servlet.jsp.JspException: No getter method for property txtUserGroupCode of bean 
org.apache.struts.taglib.html.BEAN

i have following code in the Action Clas...  still i am getting the error please 
Sugest solution for this...



 public String getTxtUserGroupCode()
 {
  return this.txtusergroupcode ;
 }

 public void setTxtUserGroupCode(String s)
 {
  this.txtusergroupcode = s ;
 }