Hi!
try using a package for a bean.
i have read in a book that beans when used in JSP
should be put in a package and that package should be
imported in the page directive.
so,put
package pkgname;
in ur bean class.
in ur jsp page use,
<%@ page import="pkgname.Test" %>
<jsp:useBean id="tt" class="pkgname.Test" />
the error u r getting may be even if ur bean has not
been instantiated.
check it out..
regards
bindu
--- Muhammad Asim Ajmal <[EMAIL PROTECTED]>
wrote:
> I m also facing same probelm,,, plzz help both of us
>
> regards
> asim
> ----- Original Message -----
> From: Pranav Bansal <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 25, 2000 5:58 PM
> Subject: Java Bean's in JSP
>
>
> > Hi all,
> > I am using a very simple bean in a jsp
> page. The bean source is
> as
> > follows......
> > import java.io.*;
> > public class Test
> > {
> > private String testquery="";
> > public Test()
> > {
> > System.out.println("Hello
> World");
> > }
> > public void queryset(String query)
> > {
> > testquery=query;
> > }
> > }
> >
> > The jsp file In which I am using this bean as
> follows........
> >
> > <%
> > String query1="select name from
> usermaster";
> > testing.queryset(query1);
> > out.println("query has been set");
> > %>
> >
> > But this gives an error that method
> queryset(java.lang.String) is not
> found.
> > Please tell me that why this happening?
> > With Regards,
> >
> > Pranav Kumar
> > Software Engineer
> > Informica India Pvt. ltd.
> > Noida,India
> > Phone: -91-118-4514702
> > www.informica.com
> >
> >
>
===========================================================================
> > 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
> >
>
>
===========================================================================
> 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
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
===========================================================================
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