Kind of.  Below are two messages I sent in which the issue is more explicit:
=======================================================
      Can someone tell me if there is a way to configure an action to match
a path regardless of how deep it is in a directory?  That is, I want
"/display.do" to be triggered in each case below:

      "/charts/display.do"
      "/news/display.do
      "/events/outdoors/display.do"

      How can I accomplish this?

=======================================================
A potential implementation clarification/development consideration.
If I submit a form action="/login.do", the Action triggered must exactly
match "/login.do" and not partial match.That is, action="/signup/login.do"
will not match.  Now this may or may not be the desired behavior.  You may
in fact want any url that ends in "/login.do" to trigger the specific
Action, or you may not.  It seems that Struts is handling the exact match
case correctly, so it is not a bug.  However, it was not clear to me that
the Action needed an exact match of the full path.  In fact, our
ActionServlet is triggered on ANY url that ends in ".do". and configurable
to be triggered on a more specific path.

=======================================================


----- Original Message -----
From: "Ted Husted" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 6:04 AM
Subject: Re: Struts Documentation (*Ted & Craig*)


> > Jonathan Asbell wrote:
> > I wanted to know what you finally decided on regarding my recent
> > documentation submission.  Also, I wanted to know if you saw the
> > pictorals and thought they were accurate.
>
> We should probably continue this on the DEV list so the threads don't
> get tangled ;-)
>
> >     On a side note, I have been struggling with a struts component
> > that seems simple, yet I am stuck and cant understand it.  My impasse
> > is in the path matching behavior of the servlet.  Has
> > anyone implemented the matching on a path regardless of depth.  Like
> > in the digester, where you can match on any "a" tag by using "*/a".  I
> > am finding that Struts is forcing me to specify full paths to my
> > actions, and that there is no way to get the text matching behavior of
> > the Digester or xsl.  Is this the case?
>
> I've never tried that myself.
>
> In general, Struts encourages developers to be explicit regarding
> entry points to their applications.
>
> What are the design benefits of having the application walk up the tree
> looking for an action to match?
>
> Is it you want the option to override calling /login.do by simply
> defining /account/login.do later?
>
> Something similar could be done with a local forward, where each
> mapping forwards to "login" but could have different paths specified.
>
> (Though, I have the feeling that the problem is that you don't want to
> specify the paths ;-).
>
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 737-3463.
> -- http://www.husted.com/about/struts/
>

Reply via email to