struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Sherman <a...@tritus.ca>
Subject Re: Multiple Servlet Mappings -> Struts Controller
Date Sun, 20 Apr 2003 20:14:13 GMT
Thanks for the response!

On 04/20/03 14:46:46 -0400 jelharou wrote:

> 1) If you have the action servlet mapped as usual, somehting like the
> following (assuming that articles is not your web app name):
>
> <servlet-mapping>
>     <servlet-name>action</servlet-name>
>     <url-pattern>/articles/*</url-pattern>
> </servlet-mapping>

But accordig to the documentation, I can only use one mapping that points 
to Struts, so I couldn't have /articles/* & /actions/* for example. Is this 
correct?

> 2) You may want to drop or replace the html extension.
> If you replace it with .do it should automatically be mapped to your
> controller (*.do mapping)

I hadn't really though of that, I guess it would do the job nicely.

My next problem will be having multiple "unknown" Actions setup in Struts. 
Maybe I can do this with modules?

Thanks for your help,

A.



--
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message