no this is not a jsp specification
but to access the bean from either a jsp or servlet u need to store the bean
in a package.
u can say that it is a bean specification.
vikram

> -----Original Message-----
> From: Tony Keith [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, February 01, 2001 9:53 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Bean problem...
> 
> Is this a specification of JSP?
> 
> 
> Vikramjit Singh wrote:
> 
> > there is a need for a package to make a bean. the bean has always to be
> > written in  a package.
> > otherwise the JSP cannot acces the bean
> > bye
> >
> > > -----Original Message-----
> > > From: Tony Keith [SMTP:[EMAIL PROTECTED]]
> > > Sent: Thursday, February 01, 2001 5:48 PM
> > > To:   tomcat-user
> > > Subject:      Bean problem...
> > >
> > > Hello,
> > >
> > > I have a strange problem with beans.
> > > I can run my bean just fine if it is in a package.
> > > For example:
> > >
> > > package foo;
> > > public class testBean {
> > > ...
> > > }
> > > and it is located in a foo directory under classes directory:
> > >
> > > /usr/local/src/jakarta-tomcat/webapps/myapps/WEB-INF/classes/foo
> > >
> > > but if I remove the package from the class
> > >
> > > public class testBean {
> > > ...
> > > }
> > >
> > > and move the class to the classes directory:
> > >
> > > /usr/local/src/jakarta-tomcat/webapps/myapps/WEB-INF/classes
> > >
> > > The bean gets produces the following errors:
> > >
> > > org.apache.jasper.JasperException: Unable to compile class for
> > >
> JSP/usr/local/src/jakarta-tomcat/work/localhost_8080%2Fmyapps/_0002fjsp_00
> > > 02fforms_0002fsignup_0002ejspsignup_jsp_9.java:63:
> > > Class jsp.f_00025rms.testBean not found.
> > >                testBean initHandler = null;
> > >                ^
> > >
> //usr/local/src/jakarta-tomcat/work/localhost_8080%2Fmyapps//_0002fjsp_000
> > > 2fforms_0002fsignup_0002ejspsignup_jsp_9.java:66:
> > > Class jsp.f_00025rms.testBean not found.
> > >                    initHandler= (testBean)
> > >                                  ^
> > >
> //usr/local/src/jakarta-tomcat/work/localhost_8080%2Fmyapps//_0002fjsp_000
> > > 2fforms_0002fsignup_0002ejspsignup_jsp_9.java:71:
> > > Class jsp.f_00025rms.testBean not found.
> > >                            initHandler = (testBean)
> > > Beans.instantiate(this.getClass().getClassLoader(), "testBean");
> > > This is on
> > > RH7.0
> > > apache
> > > tomcat 3.2.1
> > > mod_jk
> > >
> > > Any ideas why the bean has to be in a package to work?
> > > The /usr/local/src/jakarta-tomcat/webapps/myapps/WEB-INF/classes is in
> > > the $CLASSPATH...
> > >
> > > TIA
> > >
> > > --
> > > Tony
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> TIA
> Tony
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to