>
thank you for reminding. My class located at :
jswdk-1.0.1\examples\web-inf\jsp\beans\Library\Map.java
Jsp located at:
jswdk-1.0.1\examples\jsp\library\*.jsp
I think the directory is right.Ok?
> [EMAIL PROTECTED] wrote:
>
> My guess is that library.Map is not in the application class path.
>
> -----Original Message-----
> From: Amanda Fu [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, April 26, 2000 10:28 PM
> To: [EMAIL PROTECTED]
> Subject: how to use set(get)Property
>
> hi, I'm a new comer to Jsp, work on jswdk1.0.1. Here is a question about
> java bean, hope any help.
> Following are two jsp:
>
> Login.jsp
> <%@ page import="java.util.*, library.Map" %>
> <jsp:useBean id = "mymap" scope = "session" class="library.Map" />
> <jsp:setProperty name ="mymap" property="username" param ="username" />
> ...
> <FORM NAME="Form1" METHOD="GET" ACTION="Library.jsp">
> ....
>
> Library.jsp:
> <%@ page import="java.util.*, library.Map" %>
> ....
> <jsp:getProperty name ="mymap" property="username" />
>
> when it runs , an exception will be thrown such as:
> com.sun.jsp.JspException getProperty: Bean mymap not found.
>
> if use
> <%= mymap.getUsername() %>
> it will say,
> Undefined variable or class name : mymap
>
> I don't know how to make it work. Any help will be appreciated,
> especially an example.
>
> Thanx.
>
> ===========================================================================
> 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
>
> ************************* Email Disclaimer *************************
>
> The information in this email is confidential and may be legally
> privileged. It is intended solely for the addressee. Access to this
> email by anyone else is unauthorised. If you are not the intended
> recipient, any disclosure, copying, distribution or any action taken
> or omitted to be taken in reliance on it, is prohibited and maybe
> unlawful. When addressed to our clients, any opinions or advice
> contained in this email are subject to the terms and conditions
> expressed in the governing KPMG client engagement letter.
>
> **********************************************************************
===========================================================================
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