i'm not sure if this is what you were asking...

<%
    Object objectName=new Object();
    if(objectName==null) {
        Object2 objectName=new Object2();
    }
%>

you can then call <jsp:setProperty... and getProperty
----- Original Message -----
From: "Elangovan,Bhuvane" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 2:49 PM
Subject: using 2 bean with same id in jsps


>     Could any one tell is there any way to use 2 beans with the same id in
> the jsp under usebean tag.
>
>             The thing is I want to use the second bean if the first bean
is
> null.
>             IMPORTANT THING  is I want to use SAME ID under usebean tag
for
> both beans.
>
>
>
> Thanks in advance,
> (Bhuvane)
>
>
===========================================================================
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to