True, in *Java* a bean and property can be any object, but to set it
from a JSP <USEBEAN><SETFROM...></USEBEAN> tag, the property must be a
string. Unless you place a JSP scriptlet <%... %> and set the bean
property using Java, there is no way to set a bean's property to another
bean. There's no way using tags alone to set a bean's property to
reference another bean. The folks designing our pages have a tough
enough time with all the HTML tags, let alone asking them to learn Java.
We need support in the bean tags themselves for setting bean properties
to reference beans, not just strings. Thus the new tag suggestion
<SETFROMBEAN PROPERTYNAME="propertyName" BEANNAME="beanName">.
- Kurt W.
> -----Original Message-----
> From: Kirkdorffer, Daniel [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, March 04, 1999 10:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Another JSP 1 spec suggestion
>
> Perhaps I'm missing something, but a bean can be any object, and a
> property
> can be any object, so a property can be a bean.
>
> Sounds like a "syllogism" :^)
>
> But perhaps I'm missing something.
>
> Dan
> --
> Daniel Kirkdorffer
> Sr. Consultant, Syllogistics LLC
> Web: http://www.syllogistics.com/
> Email: [EMAIL PROTECTED]
>
>
> > ----------
> > From: Kurt Williams[SMTP:[EMAIL PROTECTED]]
> > Reply To: Kurt Williams
> > Sent: Thursday, March 04, 1999 8:38 AM
> > To: [EMAIL PROTECTED]
> > Subject: Another JSP 1 spec suggestion
> >
> > After using JSP for a while (and loving it) I've ran into a number
> of
> > situations where it would be advantageous to be able to set a bean's
> > property to another bean. For example, I've got a set of format
> beans
> > and I've got a table bean. It would be nice to assign the
> > table.columnFormat property to a bean, rather than a string. Right
> now
> > it seems that we are limited to just setting/getting string
> properties.
> > It seems there should be some way to set a bean's property to
> another
> > bean, not just a string.
> >
> > Something like a <SETFROMBEAN> tag that could work like:
> >
> > <USEBEAN name="dateFormatBean"
> > type="com.mypackage.DateFormatBean"></BEAN>
> >
> > <USEBEAN name="tableBean" type="com.mypackage.TableBean">
> > <SETFROMBEAN BEANPROPERTY="columnFormat" VALUE="dateFormatBean">
> > </USEBEAN>
> >
> > This would be ultra cool and very useful. If there's already some
> way
> > to do this, someone let me know.
> >
> > Thanks!
> >
> > _______________________________
> > Kurtis G. Williams
> > Internet Applications Development
> > Sterling Wentworth Corp.
> > [EMAIL PROTECTED]
> > phone: (801) 355-9777 x260
> > fax: (801) 355-9792
> >
> >
> ======================================================================
> ====
> > =
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the
> > body
> > of the message "signoff JSP-INTEREST". For general help, send email
> to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
>
> ======================================================================
> =====
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff JSP-INTEREST". For general help, send email
> to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".