-
Sep 18th, 2008, 07:46 AM
#1
Multiple servlet dispatchers in SpringSource
Please can someone help me?
I need to use a dispatch servlet to map .html to .jsp using the standard web controller (org.springframework.web.servlet.view.InternalReso urceViewResolver).
I need to map .ajax to my own controller.
My problem is that I have tried create my own web.xml with both servlets using their own MODULE-INF/WEB-INF/action-servlet.xml and MODULE-INF/WEB-INF/ajax-servlet.xml files, but for some strange reason <osgi:references> do not resolve there, they appear only to work in the META-INF/spring/bundle-context.xml and META-INF/spring/bundle-context-osgi.xml files
I tried to use the Web-Servlets entry in the MANIFEST.MF file to define multiple dispatch servlets instead of using web.xml but that fails to resolve any use .html or .ajax, no errors are shown in my trace.log file just a 404 (requested resource is not available).
Is there a better (right?) way of doing what I need to do?
I was able to get this to work with a standard war file deployed to tomcat
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules