Hi Mark,
One doesnt have to put it in the servlet classpath.
I am using JSP use beans heavily and I have placed them in the
CLASSPATH(Weblogic CLASSPATH since my App server is WEblogic)
and if you could check the generated code I am sure you would find an
answer as to why it has to be in a package...
For example the bean is instantiated as :
utils = (com.etrade.utilities)
java.beans.Beans.instantiate(getClass().getClassLoader(),
"com.etrade.utilities");
And with out the package name you would have to somehow have a import
statement in the generated Java file..
Cheers,
Naggi
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Mark Annese
Sent: Wednesday, August 02, 2000 10:35 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP-Bean question
Ok, I got it to work. Here is what I did, I place the class in a package
under the servletclasses directory. I had it at the root before. Does anyone
know why it needs to be ina package?
Thanks guys!!
Mark
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Bains Rupali
Sent: Wednesday, August 02, 2000 11:20 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP-Bean question
You dont need to register the bean. Did you place the bena in the
myserver/serverclasses directory?
-Rupali
-----Original Message-----
From: Mark Annese [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 02, 2000 1:13 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP-Bean question
I have checked the classname and it is consistant with the code in the
class, the classname, filename, and alias name that I registered in
Weblogic...I am confused .
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Sicaud Patrice
Sent: Wednesday, August 02, 2000 10:54 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP-Bean question
is your class name accurate?
-----Original Message-----
From: Mark Annese [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 02, 2000 9:05 AM
To: [EMAIL PROTECTED]
Subject: JSP-Bean question
I have created a small bean and I am trying to access it through a JSP. I am
using Weblogic as my server. I registered the bean(did not know if I had to,
but did anyway) and placed it in my classpath. when I run the JSP I get an
error reading:
C:\weblogic\myserver\classfiles\jsp_servlet\_stringbean.java:73: cannot
resolve symbol
probably occurred due to an error in /StringBean.jsp line 10:
<jsp:useBean id="stringBean" class="StringBean" />
Any ideas on what I did wrong?
Thanks!
Mark
===========================================================================
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
===========================================================================
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
===========================================================================
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