On 8/16/06, Bryn Dyment <[EMAIL PROTECTED]> wrote:
In the documentation, I note that you can check the existence of a
method via "method_exists". Is there a similar way to test the
existence of an attribute? Right now, if the queried attribute doesn't
exist, i get a "no attribute" error.
<%attr>
my_attr => 1
</%attr>
My workaround is to not use attributes at all, since it appears that I
need to ensure that they exist prior to querying them. Instead, I'm
using methods as attributes:
<%method my_attr>1</%method>
... but I'd rather use attributes, obviously.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users