RE: Does instanceof work?
An instanceOf tag does exist in the Jakarta Taglibs 'Unstandard' taglib. http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/intro.html That's the only place I know of. Steve > -Original Message- > From: Joe Germuska [mailto:[EMAIL PROTECTED] > Sent: March 21, 2004 6:33 AM > To: Struts Users Mailing List > Subject: Re: Does instanceof work? > > > At 1:31 PM + 3/21/04, Frank Burns wrote: > >I've tried the Struts logic and the JSTL tag version of > instanceof, like > >these (below), but get errors returned implying that > instanceof doesn't > >exist as a valid option. > >Does it exist? Am I doing something wrong? Can someone give > me an example, > >please? > > As far as I know, it simply doesn't exist. The full array of tags in > the Struts logic taglib (from CVS HEAD) can be found at > http://jakarta.apache.org/struts/userGuide/struts-logic.html (For > older versions of struts, consult the documentation included in the > distribution, although I don't recall any major changes happening in > this area recently.) > > As for the JSTL expression language, I've never seen reference to an > "instanceof" operator. Note that the expression language is not > simply "${any java you like}" Here's one reference to consult: > > http://www.manning-source.com/books/bayern/bayern_apxA.pdf > > If you really wanted, you could probably extend ConditionalTagBase > and implement your own. > http://jakarta.apache.org/struts/api/org/apache/struts/taglib/ logic/ConditionalTagBase.html Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining." -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does instanceof work?
At 1:31 PM + 3/21/04, Frank Burns wrote: I've tried the Struts logic and the JSTL tag version of instanceof, like these (below), but get errors returned implying that instanceof doesn't exist as a valid option. Does it exist? Am I doing something wrong? Can someone give me an example, please? As far as I know, it simply doesn't exist. The full array of tags in the Struts logic taglib (from CVS HEAD) can be found at http://jakarta.apache.org/struts/userGuide/struts-logic.html (For older versions of struts, consult the documentation included in the distribution, although I don't recall any major changes happening in this area recently.) As for the JSTL expression language, I've never seen reference to an "instanceof" operator. Note that the expression language is not simply "${any java you like}" Here's one reference to consult: http://www.manning-source.com/books/bayern/bayern_apxA.pdf If you really wanted, you could probably extend ConditionalTagBase and implement your own. http://jakarta.apache.org/struts/api/org/apache/struts/taglib/logic/ConditionalTagBase.html Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining." -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does instanceof work?
Neither are valid: http://jakarta.apache.org/struts/api/org/apache/struts/taglib/logic/package-summary.html According to the jstl doc I have, instanceof is reserved, but not implemented. If you are not concerned about subclasses of "foo.MyType", you could probably use this: ... Larry >>> [EMAIL PROTECTED] 03/21/04 6:31 AM >>> I've tried the Struts logic and the JSTL tag version of instanceof, like these (below), but get errors returned implying that instanceof doesn't exist as a valid option. Does it exist? Am I doing something wrong? Can someone give me an example, please? Thanks, Frank. *** examples *** ... ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]