I am having the same problem that Christian noted back in May. I would
like to be able to access JavaBean properties from within a custom tag.
I do have the rtexprvalue flag set to true in the tld file. I'm getting
the same error (missing ")"). I've looked at the spec and don't see
why I should not be allowed to do this. Has anyone been successful
in accessing JavaBean properties from within a custom tag using the
<jsp:getProperty.../> format, or will I need to be satisified with
using a JSP scriplet?

examples of what does and doesn't work for me:

WORKS:
<ms:test name='((Customer)session.getAttribute("cust")).getName()'>

DOESN'T WORK
<ms:test name='<jsp:getProperty name="cust" property="name"/>'>

PS - As did Christian, I did try reversing the usage of ' and ", but to
no avail.


On Tue, 23 May 2000 17:19:05 +0200, Uwe Hanisch <[EMAIL PROTECTED]>
wrote:

>Christian Billen wrote:
>>
>> Hi, what would be the best approach to call a custom tag library passing
a
>> bean property as a parameter? we are running Weblogic 5.1
>>
>> Take for example:
>>
>> <mytaglib:sometag
>> items="<jsp:getProperty name='myBean' property='myProperty'/>"/>
>
>I have just another idea.
>Set in your tld <rtexprvalue> to "true":
> <attribute>
> <name>items</name>
> <required>true</required>
> <rtexprvalue>true</rtexprvalue>
> </attribute>
>
>See JSP Specification:
>
>rtexprvalue
> if the attributes value may be dynamically calculated at runtime by
> a scriptlet expression (optional)
>
>
>Uwe
>
> ==========================================================================


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to