I think this idea is cool.
On 10/19/07, Cool Coder <[EMAIL PROTECTED]> wrote: > > Hi, > There is a requirement in my project to make all action mappings case > insensitive i.e. login.do is same as Login.do. Somebody suggested me to > use custom moduleconfig, something like > > class MyModuleConfig extends ModuleConfigImpl{ > public MyModuleConfig(String prefix) { > super(prefix); > this.actionConfigs = new MyMIMap(this.actionConfigs); // This is a case > insensitive HashMap > } > } > and also added following code in init() method of CustomRequestProcessor > > public void init(org.apache.struts.action.ActionServlet servlet, > org.apache.struts.config.ModuleConfig moduleConfig) > throws javax.servlet.ServletException > { > moduleConfig = new MyModuleConfig(moduleConfig.getPrefix()); > super.init(servlet, moduleConfig); > } > > This is somoe how does not work. > Can anybody suggest me what is wrong with this implementation? > > - BR > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com