Hi,
   Not totally "clean" but what about just parameterizing the first
component under a common parent prefix?

@UrlBinding("/m/${member}/{$event}/{id}")
public class MemberActionBean extends BaseActionBean {

    private String member;

    public String getMember(){
    }

    public void setMember(String member){


    }
}

You can easily check if member if "valid" (one of member,memiembro,/membre)
inside your bean.You might even be able to get stripes to do it for you with
built-in validators.

 If you  stick with using the bean class when generating foward resolutions,
redirect resolutions and links with stripes:link (good practice IMHO),
stripes can handle the rest. You just have to propagate the current "member"
value as a parameter.




On Mon, May 3, 2010 at 1:10 PM, Nikolaos Giannopoulos <
nikol...@brightminds.org> wrote:

> Hi,
>
> We are building a large site that initially supports 2 languages but
> will quickly grow 5+.  The site has country specific "virtualized"
> sub-domains i.e. the underlying plumbing is just one site that accepts
> any language based on country specific site or user preferences.
>
> I really like Clean URLs however our MemberActionBean must accept ANY of
> the following URLs:
>
> /member/{$event}/{id}
> /miembro/{$event}/{id}
> /membre/{$event}/{id}
> /membro/{$event}/{id}
>
> Unfortunately the following is not allowed:
>
> @UrlBinding("/member/{$event}/{id}")
> @UrlBinding("/miembro/{$event}/{id}")
> @UrlBinding("/membre/{$event}/{id}")
> @UrlBinding("/membro/{$event}/{id}")
> public class MemberActionBean extends BaseActionBean {
>
> Any ideas on how to get something like this to work?  We will have at
> least a dozen other action beans just like this.
>
> --Nikolaos
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>



-- 
Ross Sargant
Software Engineer
p: 954-623-6015 x2108
email: rsarg...@tvrc.com

TVR Communications LLC
541 S. State Road 7,Suite 5,Margate, Florida,33068

http://www.tvrc.com
------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to