Shasank Sekhar wrote:You mean the source of index.html!!!
Yes, I do.
Joined: May 03, 2011
May be this is strange but there is no JS issue and the page source contains all the codes that i share above but dont display the SWF in the page. Even right click on the page gets the menu of normal HTML page where i expect SWF and right click on the page to display Flash menu.
I google this issue a lot but dont get much help. Somewhere i found that due to security reasons when we navigate through a Servlet the Tomcat Server intelligently handle the cookie and dont include the SWF contents. IF so there must be some set up by which we can solve this issue.
Sorry, I'm asking the question because I don't understand what you mean by the sentence:
Even right click on the page gets the menu of normal HTML page where i expect SWF and right click on the page to display Flash menu.
Your code snippet suggest you redirect to a different web application if authorized variable is false. So the obvious question is does this different application contain the SWF? There is nothing a filter can do to influence the behaviour of a client side technology, the only think it can change is the request itself. If you are correctly serving your SFW file and it is not displaying this suggests a problem with the SWF itself, in which case use the debug player. It it is not being served your request is wrong so check what it is you are really requesting (fiddler or some similar tool will show you that).