Hi,
You can test for a definition by asking the definition factory: DefinitionUtil.getDefinition( defName, servletRequest, servletContext ) ; This return a ComponentDefinition, or throw NoSuchDefinitionException if not found. Hope this help, Cedric Struts Newsgroup (@Basebeans.com) wrote: >Subject: Nightly build 08052002: Tiles plugin and mapping.findForward >From: "Matt Raible" <[EMAIL PROTECTED]> > === >I'd like to write a helper method to check for a <forward> and if none is >found, then to route to forward. > >What is the best way to do this? > >I know that mapping.findForward() will return a zero length array if nothing >is found, so what would I do next? I'd love it if there was a >mapping.findDefinition or something. > >Thanks, > >Matt > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>