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

Reply via email to