Announcement Announcement Module
Collapse
No announcement yet.
Unable to load flash file (.swf) Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to load flash file (.swf)

    Application flow is,
    - user presented with login screen
    - after successful login, user is taken to home page and my home page contains one flash file. But it doesn't get loaded.

    I have made one other web application without spring to check if something is wrong with my browser or flash file itself but in that case it loads the flash file so my guess is that there is something wrong in my spring security configuration. In past also I have faced the same problem for CSS and images on login page. But after making entries like,
    Code:
    <intercept-url pattern="/images/*" filters="none"/>
    <intercept-url pattern="/css/*" filters="none"/>
    I was able to resolve that problem. I did the same again for flash too but couldn't solve it.

    Spring security file
    Code:
    <http session-fixation-protection="newSession" auto-config="true">
    	<intercept-url pattern="/login.htm" filters="none"/>
    	<intercept-url pattern="/images/*" filters="none"/>
    	<intercept-url pattern="/css/*" filters="none"/>
    	<intercept-url pattern="/*.swf" filters="none"/> <!-- Somehow this doesn't work -->
    	  <intercept-url pattern="/**" access="ROLE_USER"/>
    	  <form-login login-page="/login.htm" default-target-url="/home.htm"/>
    	 <remember-me key="key" />
    	 <logout invalidate-session="true" logout-url="/logout.htm"/>
    	 <concurrent-session-control max-sessions="1"/> 
    </http>
    JSP file that contains the flash thing
    HTML Code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1000" height="600">
        	<param name="movie" value="Main_v.swf"></param>
        	<param name="quality" value="high" />
        	<embed src="Main_v.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1000" height="600"></embed>
    </object>

  • #2
    /*.swf only matches swf files in the root of your application. The link you provide is a relative path I guess. Try either '*.swf' or '/**/*.swf'.

    Comment


    • #3
      Originally posted by Marten Deinum View Post
      /*.swf only matches swf files in the root of your application. The link you provide is a relative path I guess. Try either '*.swf' or '/**/*.swf'.
      Marten, I tried both '*.swf' and '/**/*.swf' but no success. Just for your information, I have embedded the flash into jsp. One more thing is that when right click on the page I see 'Movie not loaded' message.

      Comment


      • #4
        Well before doing anything else make sure it is due to Spring Security. If it is you should see some stacktraces/logging in your logfiles.

        Comment

        Working...
        X