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]
# 1
Use an IFRAME element in the JSP file.
GhostRadioTwoa at 2007-7-12 10:19:37 > top of Java-index,Java Essentials,Java Programming...
# 2
Hi!Any other way besides IFrame?
pinipintsa at 2007-7-12 10:19:37 > top of Java-index,Java Essentials,Java Programming...
# 3
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.
bsampieria at 2007-7-12 10:19:37 > top of Java-index,Java Essentials,Java Programming...
# 4
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.
pinipintsa at 2007-7-12 10:19:37 > top of Java-index,Java Essentials,Java Programming...
# 5

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.

GhostRadioTwoa at 2007-7-12 10:19:37 > top of Java-index,Java Essentials,Java Programming...
# 6
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!!
pinipintsa at 2007-7-12 10:19:37 > top of Java-index,Java Essentials,Java Programming...
# 7
A yes,... likely a path problem. The redirect and forward being to different paths and the flash file not in the correct location...At least you could use the flash src as "/path/to/file.swf" to make it relative to the root directory.
bsampieria at 2007-7-12 10:19:37 > top of Java-index,Java Essentials,Java Programming...
# 8

> 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?"

GhostRadioTwoa at 2007-7-12 10:19:37 > top of Java-index,Java Essentials,Java Programming...