Sneha Sharma@CONTEXT
07/07/2000 01:07 PM
First of all , naming ur class package as beans and using ><jsp:useBean
id="auth" scope="session"
>class="com.ixl.dca.ccms.Authenticate"
for useBean is a java error. I mean ur bean is class beans.Authenticate
So change that first
2ndly keep this class in the folder beans under
weblogic\myserver\serverclasses
so that weblogic can find it in its classpath.
Sneha
Rupali Bains Goswami <[EMAIL PROTECTED]> on 07/07/2000 03:43:17 PM
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Sneha Sharma/Context)
Subject: Re: How to use Bean in Weblogic 5.1
Hi i guess your answer to my question got missed out from the email.
-Nisha
>From: Raman Ravikumar <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: How to use Bean in Weblogic 5.1
>Date: Fri, 7 Jul 2000 15:20:07 -0400
>
>-----Original Message-----
>From: A mailing list about Java Server Pages specification and reference
>[mailto:[EMAIL PROTECTED]]On Behalf Of Rupali Bains Goswami
>Sent: Friday, July 07, 2000 01:33 PM
>To: [EMAIL PROTECTED]
>Subject: How to use Bean in Weblogic 5.1
>
>
>Hello,
>I have a jsp page and I want to call some validation beans from it.
>for the setup I have modified the weblogic.properties file to specify my
>document root as public_html under which i have the htdocs directory where
>the jsp and html files reside. The bean are placed in the
>public_html/classes/beans directory
>
>my jsp file looks something like this
>
><%@ page language="java" import="com.ixl.dca.ccms.*" %>
>
><jsp:useBean id="auth" scope="session"
>class="com.ixl.dca.ccms.Authenticate"
>/>
>
><%
> if (auth.allowedUser
>(request.getParameter("user"),request.getParameter("password"))
> {
>%>
><jsp:forward page=Success.jsp/>
>
>
>and the java file which is in the public_html/classes/beans directory is
>
>package beans;
>import java.sql.*;
>
> public class Authenticate extends HttpServlet
> {
> public Authenticate()
> {
> // constructor for the bean
> }
>
>
>when I try to run this i get the
>
>classnotfoundexception in the jsp page
>
>can some one please tell me why..
>
>thanks
>
>-Nisha
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>==========================================================================
=
>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
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
===========================================================================
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