I had tried with the variable names like
String sTitle;
boolean bTest;

<html:text property="sTitle"/>
<html:text property="bTest"/>
and both times I got same type of exception. but supricing it works for 
<html:text property="col"/> ( col is declared as Collection in the Form)

---- Root Cause -----
javax.servlet.ServletException: No getter method for property sTitle
of bean org.apache.struts.taglib.html.BEAN
javax.servlet.ServletException: No getter method for property bTest of
bean org.apache.struts.taglib.html.BEAN

On 8/2/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>  
> 
> I would recommend changing the capital T to a lowercase t. This is standard.
> I have had problems in the past with having uppercase variable names. This
> is due to the reflection that Struts uses to find associated getters and
> setters.
>  "Johnson, Kaerstin" <[EMAIL PROTECTED]>
>  
>  
>  
>  
>  
>  
>  
> "Johnson, Kaerstin" <[EMAIL PROTECTED]> 
> 
> 08/02/2005 11:34 AM 
> Please respond to
>  "Struts Users Mailing List" <user@struts.apache.org> 
> 
>  
> To
>  <user@struts.apache.org>, "Swapnil Patil" <[EMAIL PROTECTED]> 
> 
>  
> cc
>  
> 
>  
> Subject
>  RE: Can u help me...I have a problem related to struts. 
>  
>  
> 
>  Sounds like you probably have a case problem. 
>  Please make sure that you reference Title with the capital T throughout
>  the struts, jsp and bean. 
>  
>  I can see your set method references title with lower case, this is
>  probably the culprit. 
>  
>  Hope this helps. 
>  
>  -----Original Message-----
>  From: Swapnil Patil [mailto:[EMAIL PROTECTED] 
>  Sent: Tuesday, August 02, 2005 11:13 AM
>  To: Johnson, Kaerstin
>  Subject: Can u help me...I have a problem related to struts.
>  
>  Hi Johnson,
>  
>  I am vary sorry for mailling on your personal email address.I had
>  posted my problem on the mailing list but till now don't get any
>  reply. If you have time plz take a look.
>  
>  
>  
>       I am new in  Struts framework. I had created simple Form
>  containging 2
>  members variables as
>  
>  Form1
>  {
>  String Title;
>  Collection col;
>  }
>  I had created getter setter for both the members.
>  
>  
>  Now in my jsp page
>  I had coded like <html:form action="/DisplayGraphStep2">
>  ( DisplayGraphStep2 is linked with the above Form1.)
>  
>  Now
>  
>  if try like <html:text property="col"/> then it works
>  but i try for  <html:text property="Title"/> I get an exception ;
>  
>  ---- Root Cause -----
>  javax.servlet.ServletException: No getter method for property Title of
>  bean org.apache.struts.taglib.html.BEAN
>       at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
>  tImpl.java:530)
>       at
> org.apache.jsp.graphStep1_jsp._jspService(graphStep1_jsp.java:90)
>       at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>  
>  setTitle(String title) and getTitle() methods are present in Form1 class
>  
>  
>  mapping is like
>  <form-bean name="GraphStep1Form"  type="GraphStep1Form"/>
>  <action path    ="/DisplayGraphStep2"
>            type   ="DisplayGraphStep2"
>            name =  "GraphStep1Form">
>        <forward  name  =       "success"       path
>  ="/graphStep2.jsp"/>
>  
>  Thanks in Advance.
>  Swapnil Patil
>  
>  
>  
> ---------------------------------------------------------------------
>  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]

Reply via email to