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ʋ�~����(�X�{
> > �������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

Reply via email to