Hello,

I'm new to Taglibs and I wanted to verify my
understanding about the TagExtraInfo.isValid() method.

I have a validation rule that requires me to examine
the *value* of an attribute on a custom tag. As a
simple example, let's say I have this:

<mz:SomeTag attrib="xxx"/>

If the "attrib" value is "xxx" I want the "isValid()"
method to return true, otherwise, return false. So
far, so good.

But what should I do when the value for "attrib" can
be a runtime expression like this:

<mz:SomeTag attrib="<%=someVar>"/>

In this case the "isValid()" method cannot determine
the value of the runtime expression, since "isValid()"
is called at translation time. I'm guessing I will
have to verify the value of the "attrib" from within
the "doStartTag()" method.

Am I missing something here? Is there a simple way to
examine a runtime attribute from within the
"isValid()" method??

Thanks very much,

Mari


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/

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