|
From: Alef A. <al...@jt...> - 2004-06-28 15:16:43
|
Timo,
The DispatcherSerlvet is a JavaBean just as any other Spring-managed =
bean only this time, the properties have to be set as init-parameters in =
your web.xml alongside the servlet definition:
<servlet>
<servlet-name>blah</servlet-name>
<servlet-class>org.spfr.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>detectAllViewResolvers</param-name>
<param-name>false</param-name>
</init-param>
</servlet>
Corresponding parameters are available for not detecting all handler =
mappings and exception resolvers.
Just curious, why do you need to do this? You've extended a controller =
and implemented a the viewresolvers interface?
Alef
> -----Original Message-----
> From: spr...@li...
> [mailto:spr...@li...] On =
Behalf
> Of Timo Verhoeven
> Sent: Monday, June 28, 2004 5:00 PM
> To: spr...@li...
> Subject: Re: [Springframework-developer] chain ViewResolvers?
>=20
>=20
> Hi!
>=20
> I need to set the detectAllViewResolvers in the DispatcherServlet but =
I
> have no clue how to do this without subclassing it. I never define a
> DispatcherServlet bean in any of my XML files, so I cannot simply set
> this property via spring. The dispatcher servlet is "set up" in my
> web.xml, where AFAIK I cannot set bean properties.
>=20
> Am I missing something?!?
>=20
> Regards,
>=20
> Timo
>=20
>=20
> Am Dienstag, 4. Mai 2004 21:28 schrieb j=FCrgen h=F6ller [werk3AT]:
> > Already committed - the new DispatcherServlet bean property is =
called
> > "detectAllViewResolvers", default is true. If you're doing obscure
> > things with ViewResolvers, simply turn "detectAllViewResolvers" off
> > ;-)
> >
> > Juergen
>=20
>=20
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>=20
>=20
|