The easiest way, as I see it, is to write a filter (javax.servlet), and do url manipulation there.
Yours, Tron Walseth ________________________________________ Fra: Eusie [[email protected]] Sendt: 17. januar 2013 15:37 Til: [email protected] Emne: Re: Make URLs (i.e. mount paths) case insensitive for Wicket 6 Hi, I'm still trying to migrate this to Wicket 6 without success. Would someone give me a hand please, or point me to the documentation that I could refer to. Thanks a lot! Kind regards, Yuci On 15/01/2013 16:14, Eusie wrote: > Hello, > > Wonder how to make URLs (i.e. mount paths) case insensitive for Wicket > 6? For example, make these two URLs do the same thing: > localhost/AboutUs and localhost/aboutus > > I understand for Wicket 1.4.x, you could achieve it in the way below: > > public class DemoApplication extends WebApplication > { > @Override > protected IRequestCycleProcessor newRequestCycleProcessor() { > return new WebRequestCycleProcessor() { > @Override > protected IRequestCodingStrategy newRequestCodingStrategy() { > WebRequestCodingStrategy.Settings strategySettings = > new WebRequestCodingStrategy.Settings(); > strategySettings.setMountsCaseSensitive(false); > return new WebRequestCodingStrategy(strategySettings); > } > }; > } > } > > Many thanks, > Eusie --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
