|
From: <jue...@we...> - 2004-11-09 18:05:45
|
Hi Alessandro, Spring's view names are supposed to be global for the scope of a = DispatcherServlet. Hence, all controllers in the same dispatcher will = share a single view namespace. There is no support for having "local" = view names that just apply to a specific controller, with different = controllers returning the same view names but referring to different = views. Essentially, Spring does not use the same view name semantics as WebWork = here, where view names are usually local: for example, "success" or = "form". View names in Spring are rather meant to refer to shared = physical resources, thus being global (for the scope of a dispatcher): = for example, "orderForm" or "orderList". If you still want to use local-style view names, you could collect some = of your controllers into a separate DispatcherServlet context, having = their own view namespace there. Or you could use controller-specific = prefixes for view names. Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Alessandro Di Bella Sent: Tuesday, November 09, 2004 6:29 PM To: spr...@li... Subject: [Springframework-developer] Using multiple view resolvers <posted & mailed> Hi, I apologize for posting this in the developer list but i did not get any answer in the users one and I'm stuck. I'm trying to put together a web app and I'm trying to understand how to = use the view resolver. I should to get the XmlViewResolver to work but i = don't understand how I can associate a specific resolver with a controller. I'll explain better. I have a MultiActionController e several SimpleFormController(s) that are mapped to different paths. I would like to be able to say that if the request is handled by the MultiActionController, the views sholuld be resolved by the = XmlViewResolver while if the request if handled by SimpleFormController foo, the views should be resolved by the resolver bar. Is this possible? Thanks Alessandro ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=3D5588&alloc_id=3D12065&op=3Dclick _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |