Well, it seems that I really miss something here.
>When you said "I have a custom tag", I was assuming that you wrote it, or
>at least had access to the source code so that you could modify it. Both
>of the suggestions I gave would require changes to the tag itself.
>
>If you can't modify the tag, then you'll have to put the value of
>${photopath} into a scripting variable, and specify it using a scripting
>expression instead, like this:
>
> <mm:imagesizer src="<%= photopathVar %>" alt="Photo" />
>
>Of course, this assumes that the tag has its rtexprvalue set to true in
>the TLD file. If that's not the case, then I think you're out of luck
>(unless, as Serge said, you're using JSP 2.0).
>
In tag in my TLD file is following:
<tag>
<name>imagesizer</name>
<tag-class>com.....ImageSizerTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>src</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>alt</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>quality</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
When I use <mm:imagesizer alt="Photo"><c:out value="${photopath}" /></mm:imagesize>
syntax, I get the error "According to the TLD attribute src is mandatory for tag
imagesizer".
When I use <mm:imagesizer src="${photopath}" alt="Photo" /> syntax, the setSrc method
in the tag implementation get the string of ${photopath}, not the value it carries. In
fact, I use the ${photopath} to transfer data from a custom tag. I can't see scripting
is a solution in this case. The deployment containor is TC 4. It is not an option for
me to use JSP 2 at least for now.
Thanks,
v.
____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]