pass complex object to custom tag

2003-01-30 Thread Erik Price
Is there a way to pass something other than a string to a custom tag through the attributes? I have a class I've written and I'd love to find a way to pass it to a custom tag for processing. This would separate the display logic from the business logic. jsp:useBean id=user class=UserBean

RE: pass complex object to custom tag

2003-01-30 Thread Tim Moore
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 3:22 PM To: Tomcat Users List Subject: pass complex object to custom tag Is there a way to pass something other than a string to a custom tag through the attributes? I have

RE: pass complex object to custom tag

2003-01-30 Thread Felipe Schnack
List Subject: pass complex object to custom tag Is there a way to pass something other than a string to a custom tag through the attributes? I have a class I've written and I'd love to find a way to pass it to a custom tag for processing. This would separate the display

Re: pass complex object to custom tag

2003-01-30 Thread Larry Meadors
You could pass the object name, property name, and scope to the tag, then use reflection to do it - the commons-beanutils stuff makes this painless. It is really simple and prowerful, honest! [EMAIL PROTECTED] 01/30/03 13:26 PM Is there a way to pass something other than a string to a custom

Re: pass complex object to custom tag

2003-01-30 Thread Erik Price
Tim Moore wrote: -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 3:22 PM To: Tomcat Users List Subject: pass complex object to custom tag Is there a way to pass something other than a string to a custom tag through the attributes? I

RE: pass complex object to custom tag

2003-01-30 Thread Tim Moore
-Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 3:34 PM To: Tomcat Users List Subject: RE: pass complex object to custom tag The tag shouldn't have rtexexpr set to true in its TLD too? (specifically for src attribute

Re: pass complex object to custom tag

2003-01-30 Thread Erik Price
Tim Moore wrote: I have a class I've written and I'd love to find a way to pass it to a custom tag for processing. This would separate the display logic from the business logic. jsp:useBean id=user class=UserBean / ptcbe:mainpagetable src=%= user.getBudgetList() % / This

Re: pass complex object to custom tag

2003-01-30 Thread Erik Price
After experimentation, I guess you can't use the jsp:getProperty tag as an attribute of a custom tag, although you can use a JSP expression to achieve the same effect. So, it works, just not the way that I originally tried to do it. Erik Erik Price wrote: Tim Moore wrote: I have a

RE: pass complex object to custom tag

2003-01-30 Thread Tim Moore
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 5:19 PM To: Tomcat Users List Subject: Re: pass complex object to custom tag Tim Moore wrote: I have a class I've written and I'd love to find a way to pass it to a custom