Dennis:

You can use the useBean directive irrespective of whether your Java classes
resides within a
JAR file or within a .class file in a directory, as long as the JAR file
and/or the .class file
directory are included in your JSP container's class path.

So, don't change the useBean tag at all! But include the JAR file that
contains your
bean in your JSP container's class path!

Now this can be trickier as it sounds. The different JSP containers have
different way of
specifying their respective class paths.

JSP 1.1 promises some relief. It allows beans to be included in WAR files.
WAR files
are web application archives that bundle all components of a Java web
application into
one file.

Hope this helps at all!

Oliver Enseling
Java Software Architect
BORN

-----Original Message-----
From: Dennis Huang [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 08, 2000 9:40 PM
To: [EMAIL PROTECTED]
Subject: useBean question


Hi, friends:

When I use java bean in a JSP page, should I always use .class file not .jar
file? None of examples I have ever seen so far is using .jar file. That's
why I ask this question. If I want to use a bean in jar file, how do I write
useBean tag?

Thanks

Regards,

Dennis Huang
___________________________________________________
DATACOM SYSTEMS
34 Waterloo, North Ryde         |   *   0061-2-9023 5214
Sydney, NSW 1670                |   *   0061-2-9023 5300
Australia                       |   *   [EMAIL PROTECTED]

===========================================================================
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

Reply via email to