the two codes are working properly the other samples while the code below seems to
have problem.
see code below.
<%@ page import="java.util.*,com.taglib.wdjsp.arch.*" %>
<jsp:useBean id="employee" class="com.taglib.wdjsp.arch.EmployeeBean" scope="request"/>
<jsp:setProperty name="employee" property="*"/>
<html>
<body>
<b>Current Employees</b>
<ul>
<%
Vector v = (Vector)request.getAttribute("list");
Iterator i= v.iterator();
while (i.hasNext()) {
employee = (EmployeeBean)i.next();
System.out.println(employee.getId());
System.out.println(employee.getFirstName());
System.out.println(employee.getLastName());
%>
<li>
<a href="./fetch?cmd=get&id=
<jsp:getProperty name="employee" property="id"/>">
<jsp:getProperty name="employee" property="lastName"/>,
<jsp:getProperty name="employee" property="firstName"/>
<% } %>
</ul>
</body>
</html>
pls. advise thanks
alex
----- Original Message -----
From: "Meghana" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 6:38 PM
Subject: Re: introspection problem
> Do not close the <jsp:useBean> tag if u want to use setProperty within
> this.
>
> Moreover, when u use setProperty within useBean tag it simply
> means, set the property only if the bean is instantiated and there is no
> error while instantiating. So u can either put setProperty within the
> useBean or close the useBean tag before the setProperty tag. Use either
> Method 1 or Method 2 as described below :
>
> Method 1 :
>
> <jsp:useBean id="employee" class="com.taglib.wdjsp.arch.EmployeeBean"
> scope="request">
> <jsp:setProperty name="employee" property="*"/>
> </jsp:useBean>
>
> Method 2:
>
> <jsp:useBean id="employee" class="com.taglib.wdjsp.arch.EmployeeBean"
> scope="request"/>
> <jsp:setProperty name="employee" property="*"/>
>
> Use according to u r requirement.
>
> Meghana....
>
>
>
>
> On Thu, 18 Jan 2001, Kevin Jones wrote:
>
> > > <jsp:useBean id="employee" class="com.taglib.wdjsp.arch.EmployeeBean"
> > scope="request" />
> > > <jsp:setProperty name="employee" property="*"/>
> > > </jsp:useBean>
> >
> > Are you sure this is right?
> >
> > You close the jsp:useBean tag in the first line (note the /> ) and then call
> > jsp:setProperty, and then have a closing
> > </jsp:useBean> tag
> >
> > Kevin Jones
> > DevelopMentor
> > www.develop.com
> >
> > > -----Original Message-----
> > > From: A mailing list about Java Server Pages specification and reference
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Alex A. Almero
> > > Sent: 18 January 2001 07:53
> > > To: [EMAIL PROTECTED]
> > > Subject: introspection problem
> > >
> > >
> > > it seems that instrospection doesn't work with tomcat 3.2.1
> > > my code below doesnt retrieve anything from the database.
> > >
> > > did i missed something?
> > > ....
> > > <jsp:useBean id="employee"
> > > class="com.taglib.wdjsp.arch.EmployeeBean" scope="request" />
> > > <jsp:setProperty name="employee" property="*"/>
> > > </jsp:useBean>
> > > ....
> > > <tr><td><b>employee id:</b></td><td>
> > > <jsp:getProperty name="employee" property="id"/>
> > > </td></tr>
> > > <tr><td><b>department:</b></td><td>
> > > <jsp:getProperty name="employee" property="department"/>
> > > </td></tr>
> > > <tr><td><b>e-mail:</b></td><td>
> > > <jsp:getProperty name="employee" property="email"/>
> > > </td></tr>
> > >
> > >
> > > ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿðèb<~j (ÿôÚ-KhÊ<«~¸z�Û(zX§{
> > > .?¡¢�ÌzË z «þ m§ÿÿ oòj (ýÊ&
> > >
> > > ==================================================================
> > > =========
> > > 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://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".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> > 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
> >
>
> ******************************************************************************
> We have no right to ask when sorrow comes, "Why did this happen to me?"
> Unless we ask the same question for every moment of happiness that comes our
> way.
>
> ===========================================================================
> 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://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
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿü: ¢æ � ÿügÊ�«~·�ÿ&¡¢�Ü¢f�v·¬±«a¶Úÿÿù� _òj
(ýÊ&
===========================================================================
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://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