I was thinking of the ActionServlet entry.

One of the rough spots in the API is that in some places you need to specify the Action's URI and in others just the Action path. This is can be very tough to explain to newcomers.

One goal in 2.0 should be to provide better encapsulation of the URIs, so that you would be able to use truly logical names all around.

A patch for 1.2.x might be to make the ActionForward a tad smarter, so that you could point the ActionForward to an ActionMapping and let the ActionForward handle resolving the path.

-Ted.

Raible, Matt wrote:
Something I've been meaning to try is to actual define the module as
"/do/$MODULE",
but I don't have any open projects that use modules to try this with =:(

Do you mean on the <controller> element? or on the forward? or in the
actionServlet's entry in web.xml?

BTW, it it possible to get out of writing /do/ or *.do for each forward?
Maybe I can manipulate the pagePattern on the <controller> element?  I tried
using

pagePattern="/do/$M$P"

and removing the /do/ from all my forward's paths, but no joy.

Thanks,

Matt


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



--
Ted Husted,
Struts in Action <http://husted.com/struts/book.html>


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

Reply via email to