Hi,
on first glance, one problem will be that a bean needs
a null constructor.
ron
--- Syamala kotamraju <[EMAIL PROTECTED]>
wrote:
> 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
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail � Free email you can access from anywhere!
http://mail.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