Announcement Announcement Module
Collapse
No announcement yet.
Using SWFObject from within Spring MVC Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using SWFObject from within Spring MVC

    I have a Spring MVC project. The view returned from one controller is a jsp page which uses swfobject to embed flash content in the jsp, as follows:
    Code:
        
        <head>
            <script type="text/javascript" src="jsp/swfobject.js"></script>
            <script type="text/javascript">
                    ...         
                    swfobject.embedSWF(
                    "MyApp.swf", "flashContent",
                    "100%", "820",
                    swfVersionStr, xiSwfUrlStr,
                    flashvars, params, attributes);
            </script>
        </head>
        <body>
        	div id="flashContent" />
       </body>
    When the jsp view is rendered, this exception is shown in the tomcat.log
    Code:
    29 Apr 2012 15:23:48,994 WARN http-8080-1 PageNotFound - 
    No mapping found for HTTP request with URI [/MY-APP/jsp/swfobject.js] in DispatcherServlet with name 'spring-myapp'
    What is the correct way to use swfobject from within Spring, so that the DispatcherServlet does not try to interfere?
    Thanks very much.
Working...
X