You should spell the method names as:

getValue
setValue

This is the "bean" method naming rule.



kanojiajogesh wrote:
>
> Hi There
>
> I have Create a bean which consist a function that accept a string
>
> Here is the code
> *********************
> import java.io.Serializable;
> public class mybean implements java.io.Serializable
> {
> public String mystr = new String("Kanojia Jogesh");
> public mybean()
> {
>  }
> public String getvalue()
> {
>  return mystr;
>  }
> public void setvalue(String s)
> {
>  mystr = s;
>  }
> }
>
> ***********************************
> when i change the parameter of setvalue like this
> public void setvalue(String s,int i)
> {
>  mystr = s;
>  }
>
> Its give me the error
> mybean: method setvalue(Ljava/lang/String;I)V not found
>
> I am unable to send 2 value in the function
>
> Please Help me out
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

--
=============================================================

http://www.econvite.com.br
A maneira mais f�cil de reunir os amigos!

http://www.paulada.com.br
Mande uma mensagem an�nima mas aguarde, que vem resposta!

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to