You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dirk Behrendt <sc...@web.de> on 2003/09/29 16:09:02 UTC

Change the ".do" extension

Hello!

Is there a possibility to get rid of the .do extension in the actions?

For example:

 http://localhost/login.do

should be
--> http://localhost/login


Ist this possible?

Thanks!

Dirk




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


Re: Change the ".do" extension

Posted by Martin Gainty <mg...@hotmail.com>.
Dirk-

in web.xml change

<!-- Action Servlet Mapping -->

<servlet-mapping>

<servlet-name>action</servlet-name>

<url-pattern>*.do</url-pattern>

</servlet-mapping>

to whatever extension you wish to trigger action..

Vielen Dank,

-Martin

----- Original Message ----- 
From: "Dirk Behrendt" <sc...@web.de>
To: <st...@jakarta.apache.org>
Sent: Monday, September 29, 2003 10:09 AM
Subject: Change the ".do" extension


> Hello!
> 
> Is there a possibility to get rid of the .do extension in the actions?
> 
> For example:
> 
>  http://localhost/login.do
> 
> should be
> --> http://localhost/login
> 
> 
> Ist this possible?
> 
> Thanks!
> 
> Dirk
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 

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


RE: Change the ".do" extension

Posted by Steve Raeburn <sr...@apache.org>.
http://jakarta.apache.org/struts/userGuide/configuration.html#dd_config_mapp
ing

Steve

> -----Original Message-----
> From: schnoerk@web.de [mailto:schnoerk@web.de]
> Sent: September 29, 2003 7:09 AM
> To: struts-user@jakarta.apache.org
> Subject: Change the ".do" extension
>
>
> Hello!
>
> Is there a possibility to get rid of the .do extension in the actions?
>
> For example:
>
>  http://localhost/login.do
>
> should be
> --> http://localhost/login
>
>
> Ist this possible?
>
> Thanks!
>
> Dirk
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>



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