On 11/22/06, Dale Newfield <[EMAIL PROTECTED]> wrote:
I gave up on using a .tag file to do this and wrote my own Tag class.
In the process I think I may have learned something that relates to this
problem: No matter the expression language to be applied to the
attributes of a tag, they are all set as Strings. In doTag() (or a
related method with body tags) those String expressions may be evaluated
and somehow non-strings retrieved. Maybe this means that maybe the
right way to pass objects in to .tag files is to pass a string that
would evaluate to the object, and somehow inside the .tag file to force
an extra (nested?) ognl evaluation? (All that said, why does the
attribute declaration allow a type specification if they're always
Strings? -- Does that mean this is a red herring?)
I don't know, I haven't worked with tag files enough to know. You
might be able to find out from the Pro JSP book. ;-)
http://www.apress.com/book/bookDisplay.html?bID=464
Matt
Hope that helps someone else solve this problem at some point. If you
do, please respond to me/this thread letting me know the real solution.
On a related note--I've found no way to prevent a trailing newline in a
.tag file, and therefore in the output of the evaluated tag. The Tag
Class also solved that problem.
-Dale Newfield
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]