Embed flash file in jsp page
In this example, we will see how to embed a flash file in jsp page. In the example given below we have used HTML tag in jsp code to embed flash file.
<OBJECT> in HTML is used to insert an object in html document and also provide all the information to run this object.
<PARAM> in HTML is used to pass the parameters that are required to implement the object.
<EMBED> in HTML is provide easiest and most supportive way to embed video, sound, flash files in the web page. We can add Real Media, Quick Time movies, Windows Media, Flash animations in web page through <EMBED> tag.
This is example of jsp code to embed a flash animation file named 'pic.swf' in web page. Before run this example create a new directory named "user" in the tomcat-6.0.16/webapps and paste WEB-INF directory in same directory.
Save this code as a .jsp file named "add_flash_to_jsp.jsp" in the directory Tomcat-6.0.16/webapps/user/ and you can run this jsp page with following url in address bar of the browser "http://localhost:8080/user/add_flash_to_jsp.jsp"