|
From: <jue...@we...> - 2004-12-27 18:29:00
|
Good point - further init parameters that do not correspond to bean = properties should be allowed.=20 =20 Coincidentally, a similar request came in for GenericFilterBean: http://opensource.atlassian.com/projects/spring/browse/SPR-587 = <http://opensource.atlassian.com/projects/spring/browse/SPR-587>=20 =20 I've just changed both HttpServletBean and GenericFilterBean to use = BeanWrapper.setPropertyValues(pvs, true), to ignore unknown bean = properties. We do the same for request parameters, and I think it's = appropriate for servlet/filter init parameters too. =20 Juergen =20 ________________________________ Von: spr...@li... im Auftrag = von Steven Devijver Gesendet: Sa 25.12.2004 02:58 An: spr...@li... Betreff: [Springframework-developer] HttpServletBean remark Hi, I'm using an Eclipse plugin called Jetty Launcher (details: http://www.eclipseplugincentral.com/Web_Links+index-req-viewlink-cid-211.= html). You have to feed it a war file and it starts a Jetty instance from within Eclipse which allows debugging of your code. This plugin apparently sets a init parameter in the background called classpath on every servlet in your web.xml. This obviously turns DispatcherServlet wild since it doesn't have a classpath property. It also drove me crazy, I had to search for over an hour to solve this very wierd exception: DispatcherServlet doesn't have classpath property. Would it be possible to handle unknown properties a bit more gently, maybe by logging a warning or something? I solved the problem by extending DispatcherServlet and adding a classpath property but may not always be possible. Thanks Steven ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |