Keep the file in class path web-inf\classes\balance.class
if it is inside a package for example : com.ril.beans ->
Keep the file in class path web-inf\classes\com\ril\beans\balance.class
then U can use <jsp:useBean .........> .
If this is not working
copy the error message and send.
regards
subbu....
----------------------------------------------------------------------------
------------------------------
s.subramanian
IonIdea Enterprise solutions
Bangalore.
India.
Mail : [EMAIL PROTECTED]
web-inf\classes\balance.class
----- Original Message -----
From: "[Vaishali S. Pandya]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 3:04 PM
Subject: import
> Hello There
> I have a class file wherein certain classes are defined public.
>
> Now in jsp I have to use this class.
>
> For instance
> public class balance
> {
>
> public balance(String n)
> p_name = n;
>
> public String show()
> {
> p_name = p_name + i;
> return p_name ;
> }
> }
>
>
> Now this balance.class is to be imported in jsp program
>
> Usually <% @ page import java.sql.* %>
> <% @ include file = "funcs.jsp %>
>
> Now the above class is to be imported. The above class is in my
> subdirectory.
> CLASSPATH variable is to be set or by any other means.
>
> <jsp:useBean .........> also I tried but not properly working.
>
> Thanks in advance
> Regards
> Vaishali
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com