struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Sherman <>
Subject Mapping Problems
Date Wed, 02 Oct 2002 20:39:20 GMT
Is it possible to map requests to an Action using a pattern?

I would like to map "*.html" to my Action.

Using Tomcat, if I request "/thing.html", I get a 400 saying "Invalid 
path /thing was requested". A few snippets:

In web.xml:

In struts-config.xml:
<action path="*.html" 
type="com.teachandtravel.presentation.actions.RenderPageAction" />



P.S. I'm looking for a Best Practice on handling generic non-dynamic 
pages on a site using Tiles, which is what I'm trying to implement 
above. A better solution would be appreciated!

Adam Sherman
Software Developer
Teach and Travel Inc.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message