Hi Reeta

The problem is probably that your bean is not in a package.
When a bean is not in a package it must be imported.
Try to add the following line to your jsp-page:

     <%@ page import="MyBean" %>

I think that will solve your problem.

- John.

N.B.: Also make sure that the directory with your bean is in the classpath.






Reeta Mittal <[EMAIL PROTECTED]>@JAVA.SUN.COM> on 24-11-99
08.55.06

Please respond to Reeta Mittal <[EMAIL PROTECTED]>

Sent by:  A mailing list about Java Server Pages specification and
      reference <[EMAIL PROTECTED]>


To:   [EMAIL PROTECTED]
cc:
Subject:  Running a JSP


Hello Everyone,

I am using JSWDK1.0.1 for JSP.
I am writting a test JSP in which I am using a test bean. Can anyone please
tell me where I hav to place the Bean ?
I have placed the JSP in the example directory and BEAN in the WEB-INF
directory.
I have created a subdirectory under example directory and a subdirectory
under WEB-Inf directory.
I have used the JAVAC for compiling the bean.
I am getting
500: Internal server error.

Can anyone please help me for this....

Regards,
Reeta


Regards,
Reeta

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to