Van wrote:
> Okay. So maybe this isn't the only wildcard mapping you will have.
Still, you could have one SectionAction class for this particular
wildcard mapping. That would be a vast improvement over status quo.

How many different wildcard mappings do you have in this application?

Almost every page will be delivered through a wild-carded action path. We're talking a few tens of patterns with varying amounts of similarity.

You could pass one request parameter that indicated which wildcard
pattern was involved. If you don't want to have branching logic, you
could even make this additional request parameter be a property name
and store in your application properties file the regular expression
to use against the incoming request URL to pull out the matching
wildcard values. That should scale generally to any number of
different wildcard mappings using a single Action class that was
driven by these regular expressions coming from your application
properties file.

That's still multiplying the number of places the patterns must be stored and processed, and since Struts already does everything I want except (apparently) a way to pass the results along that seems like a bad idea.

Looks like my original approach (overloading 'parameter') will have to do.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to