hai
First import the bean and create the instance using jsp:useBean . Before
this please check the bean is in the correct directory.
----- Original Message -----
From: Low Kok Leong <lousai@t...>
To: Pro_JavaServer_Pages <pro_jsp@p...>
Sent: Wednesday, December 13, 2000 8:54 AM
Subject: [pro_jsp] JSP bean Object
> I try to call a bean inside jsp, but keep say class not found,
>
> this is how I do it
>
> ----------------start jsp code--------------------
> <jsp:useBean id='SCI' scope='application' class='scart.ShoppingCartItem'
type="scart.ShoppingCartItem" />
> .
> .
> .
> <%
> Enumeration e = SCART.getItems();
> while (e.hasMoreElements()) {
> ShoppingCartItem item = (ShoppingCartItem)e.nextElement();
> BookDetails bd = (BookDetails)item.getItem();
> %>
> ------------------end code---------------------
> ShoppingCartItem and BookDetails are two bean reside in my package
> classpath.
---
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS? Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development,
Web Development, Networking & Communications, and Hardware & Systems.
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---
You are currently subscribed to pro_jsp as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-pro_jsp-$subst('Recip.MemberIDChar')@p2p.wrox.com