When defining an action element in the struts-config.xml file, we always utilize the path attribute. For example, I have two actions defined in my struts-config.xml *snippet* <action path="/home" type="foo.strutsApp.ContentAction" name="contentForm"> <forward name="fail" path="/Login.jsp" /> </action> <action path="/login" type="ginsu.strutsApp.LoginAction" name="loginForm"> <forward name="fail" path="/Login.jsp" /> </action> */snippet* Say I want to make the first action element be invoked by any path that starts with "/home" (like "/homeshop" or "/homes"). Basically, can I define a wildcard in the path attribute? I would like to have the ability to have a few different URLs mapped to the same action WITHOUT having to define all of those relative URLs in more action elements. In essence I would like to have something along the lines of: <action path="/home*" type="foo.strutsApp.ContentAction" name="contentForm"> <forward name="fail" path="/Login.jsp" /> </action> So that the path attribute is mapping potentially any number of relative URLs that begin with "/home" to this action. This would allow me some great flexibility for real time content updating. Is this possible? TIA.
--------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo.