Hi,
I changed the bean class to include a null constructor and changed the jsp file also
and it's working properly now!
Thanks a lot!
Syamala
> ----- Original Message -----
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Received: 07/14/2000 12:42 PM
> Subject: Re: problem in JSP compilation when beans are used
>
> Hi there,
> I checked your code. There are following problems with it
> change your
>
> > <jsp:usebean id = "test" class = "test.testBean" scope="request">
>
> to
> <jsp:useBean id = "test" class = "test.testBean" scope="request"/>
> note that XML is case sensitive and use useBean instead of usebean.
>
> > <jsp:setProperty name = "test" property ="msg" value = "Hello world"
> />
> > The Message is <jsp:getProperty name = "test" property = "msg" />
>
> There is no need of this tag remove it "</jsp:useBean>"
>
> regards
> Y
> ----- Original Message -----
> From: Syamala kotamraju <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 14, 2000 7:22 PM
> Subject: Re: problem in JSP compilation when beans are used
>
>
> > Hi,
> >
> > Here's the code for testBeans.jsp file
> > <HTML>
> > <HEAD>
> > <META NAME="GENERATOR" Content="Microsoft Developer Studio">
> > <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
> > <TITLE>Testing Beans</TITLE>
> > </HEAD>
> > <BODY>
> >
> > <%@page import = "test.*" %>
> > <jsp:usebean id = "test" class = "test.testBean" scope="request">
> > <jsp:setProperty name = "test" property ="msg" value = "Hello world"
> />
> > The Message is <jsp:getProperty name = "test" property = "msg" />
> > </jsp:useBean>
> > </BODY>
> > </HTML>
> >
> > And the code for testBean.java which is under the directory test:
> > package test;
> >
> > public class testBean
> > {
> > private String msg = " No message";
> > public void setMsg(String msg)
> > {
> > this.msg = msg;
> > }
> > public String getMsg()
> > {
> > return(msg);
> > }
> > }
> > I placed my testBean.class file in the directory:
> > c:\javawebserver2.0\classes\test
> > and my jsp file in the directory
> > c:\javawebser2.0\public_html
> >
> > Thanks,
> > Syamala
> > > ----- Original Message -----
> > > From: [EMAIL PROTECTED]
> > > To: [EMAIL PROTECTED]
> > > Received: 07/14/2000 09:31 AM
> > > Subject: Re: problem in JSP compilation when beans are used
> > >
> > > hi
> > >
> > > check your close bracket proberly. other wise send your full code. then
> only
> > > i came to know!!
> > >
> > >
> > > ________________________________________________________________________
> > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Get your own Free Unified Messaging email account (with toll-free
> voicemail and fax!) at http://www.electronmail.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
>
Get your own Free Unified Messaging email account (with toll-free voicemail and fax!)
at http://www.electronmail.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