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
-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
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
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
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
-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
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
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
-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