|
I
thought
<url-pattern>*.do</url-pattern>
would
do it.
If
there is another mapping infront of the *.do then *.do won't get
called.
Here
are some other examples:
<servlet-mapping> <servlet-name>watermelon</servlet-name> <url-pattern>/fruit/summer/*</url-pattern> </servlet-mapping>
<servlet-mapping> <servlet-name>garden</servlet-name> <url-pattern>/seeds/*</url-pattern> </servlet-mapping>
<servlet-mapping> <servlet-name>list</servlet-name> <url-pattern>/seedlist</url-pattern> </servlet-mapping>
<servlet-mapping> <servlet-name>kiwi</servlet-name> <url-pattern>*.abc</url-pattern> </servlet-mapping> URL | Servlet Invoked |
|---|
http://host:port/mywebapp/fruit/summer/index.html | watermelon | http://host:port/mywebapp/fruit/summer/index.abc | watermelon | http://host:port/mywebapp/seedlist | list | http://host:port/mywebapp/seedlist/index.html | The default servlet, if configured, or an HTTP 404 file not found error message If the mapping for the list servlet had been /seedlist*, the list servlet would be invoked. | http://host:port/mywebapp/seedlist/pear.abc | kiwi If the mapping for the list servlet had been /seedlist*, the list servlet would be invoked. | http://host:port/mywebapp/seeds | garden | http://host:port/mywebapp/seeds/index.html | garden | http://host:port/mywebapp/index.abc | kiwi |
These examples are from the WebLogic documentation. --Abraham
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?
|