Hi guys, Is it possible to have something like
<result-type name="selector" class="o.a..d.SelectorResult" > <param name="matchers">o.a.s.d.RoleMatcher</param> <param name="matchers">o.a.s.d.AgentMatcher</param <param name="wraps">o.a.s.d.ServletDispatcherResult</param> </result-type> so that we don't need to introduce another class attribute to the param tag. Thoughts? :-) "David H. DeWolf" <[EMAIL PROTECTED]> wrote: YES! I like that. This seems to reduce the extra complexity from the config but still provides the flexibility we're looking for. David Ted Husted wrote: > On 10/26/06, Don Brown wrote: >> Then, each result selector is given a chance to select a single String. >> If a result has when="modern-browser,partial-html", >> the each selector will be given a chance to return its "when" token, and >> xwork will match them together as AND. > > Or, with wildcards ... > > > > > > > /{1}{result-code}{role}{agent}.jsp > > /{1}-error.jsp > > > > Each "matcher" could add a named token into the context, like > "-manager". The selector result could then resolve the wildcard path > and delegate to another Result, like the default ServletDispatcher > Result. The matchers might not inject a token, if it was the default > or didn't apply for some reason. > > So, an application using this strategy might have pages named like. > > * ViewFoo.jsp > * ViewFoo-netscape4.jsp > * ViewFoo-manager.jsp > * ViewFoo-manager-netscape4.jsp > * ViewFoo-failure.jsp > > Of course, this strategy presupposes using something like SiteMesh or > Tiles to provide the standard layout, so that each "page" can just > focus on it's own content. > > -T. > > --------------------------------------------------------------------- > 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] Send instant messages to your online friends http://uk.messenger.yahoo.com