|
From: Rod J. <rod...@in...> - 2003-07-09 06:33:32
|
You can also provide your own ViewResolver implementation to define views any way you like. Regards, Rod ----- Original Message ----- From: "Kopylenko, Dmitry" <dko...@su...> To: "'Alef Arendsen '" <al...@jt...>; <spr...@li...> Sent: Wednesday, July 09, 2003 1:55 AM Subject: RE: [Springframework-developer] Dots in views not possible? > Alef, > > you could try to use XmlViewResolver strategy with your views defined in > /WEB-INF/views.xml (default) to allow for (.)s in your view names unless you > need internationalization support: > > <bean id="jteam.site.data.Employee" > class="com.interface21.web.servlet.view.JstlView"> > <property > name="url"><value>/WEB-INF/jsp/employeelist.jsp</value></property> > </bean> > > Regards, > Dmitriy > > -----Original Message----- > From: Alef Arendsen > To: spr...@li... > Sent: 7/8/2003 6:01 PM > Subject: [Springframework-developer] Dots in views not possible? > > Hi all, > > Is there any reason why it's not possible to have .'s (dots) in your > view-names (or am I stupid ;-). I keep getting the error message: > <error>Invalid bean definition. Classname or parent must be supplied for > bean with name 'jteam'</error> when I'm having the following view > definitions in my view file: > > jteam.site.data.Employee.class=com.interface21.web.servlet.view.JstlView > jteam.site.data.Employee.url=/WEB-INF/jsp/employeelist.jsp > > I'm building myself datamanager and based on a request parameter (which > in this case is a classname) I return the appropriate view. It would not > be such a big problem to only append the classname (Employee) in there > or replace the dots with anything else, but maybe there's another > solution? > > Cheers > > Alef > > P.s. just shout if I'm asking questions that just are tooo stupid... > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |