If this problems occurs on only one action you could do something like:
@UrlBinding("/home.php")
public class HomeAction {
// Something here
}
@UrlBinding("/mgt/home.php")
public class MgtHomeAction extends HomeAction {
// Nothing here as it is the same as HomeAction
}
If it occurs on all actions, you may set up URL rewriting to redirect
/mgt/* to /* or the contrary You can do that with:
- Apache module mod_rewrite
- Servlet filter: http://code.google.com/p/urlrewritefilter/
http://tuckey.org/urlrewrite/
- Stripes interceptor
Gérald
2008/10/2 farouk alhassan <[EMAIL PROTECTED]>:
> I have an actionbean mapped to /home.php
>
> On my development machine, it works fine, but on my live server, I have an
> apache proxy
> that causes requests to come in as
> /mtg/home.php, when i use absolute urls.
>
> is there a way I can bind both urls to the same actionbean so it works on
> both machines?
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users