> -----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 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 didn't work?  Just make your tag handler have a method like
setSrc(UserBean src) and that should work fine.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to