Flash and Struts
Hi!
I have a struts action which returns a mapping to a jsp page. this jsp page includes a flash movie(swf). However when the jsp page loads, the flash movie does not get loaded. When i have the redirect="true" in the struts-config for that forward, the flash movie is loaded.
The problem with this approach is that in mozilla, the redirect="true" creates a new session and breaks the previous one. this becomes very critical....
pls help!
[465 byte] By [
pinipintsa] at [2007-11-27 5:01:55]

I don't know, but if the HTML code gets to the browser with the Flash content defined in it, than I fail to see how redirects or actions have any impact. The browser wouldn't know about any of that, it just sees HTML.
I agree, its baffling but its still true!When we return from an action class to the browser in struts, the url of the browser reflects the action class and not that of the jsp. However, with redirect="true" the url changes to the jsp.
How do you currently call the Shockwave file into the JSP page?
Is the JSP file in the same directory as the path of the action?
There is something wrong with your files, setting the redirect attribute is not the answer. Set the redirect to false and figure out what is wrong with your files.
> the jsp file and swf file are in the same folder!
>
> also with redirect="true" why does mozilla create a
> new session while IE does not!
>
> i looked upon the info for redirect="true" and found
> out that it creates a new request!!
You did not answer my question. Read it slower.
"How do you currently call the Shockwave file into the JSP page?"
Question again, but with some more sauce.
"Is the JSP file in the same directory as what is specified in the path attribute of the action element in the configuration file?"