Johnny:

I think that you can't pass an object to a custom tag,
instead you pass string enclosed on quotes.

Atilio
Good luck



--- Johnny Blaze <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm trying to a pass a bean to my custom tag.  Is
> this possible?  as you can
> see from my code below, I've enclosed <%=mybean%> in
> quotes.  The browser
> then complains that I cannot convert the string to
> an IteratorBean. If I
> removed the quotes the brower complains that I need
> the quotes.
>
> Then first part of the code sample is code from my
> JSP page.  The second
> part is my part of my tag definition which assigns
> IteratorBean to the bean
> passed through the tag.
>
> ****   START OF CODE ******
> <!-- in my .jsp page -->
> <jsp:useBean id="myBean" class="IteratorBean" />
> <test:repeat bean="<%=mybean%>"></test:repeat>
>
> // in my tag definition
> IteratorBean bean = null;
>
> public void setBean(IteratorBean bean){
>      this.bean = bean;
> }
>
>
> ****   END OF CODE ********
>
>
> thanks in advance,
>
> Johnny
>
>
===========================================================================
> 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


=====
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.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://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