Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials

Latest Questions
Comments
 
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.

 

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.

add_flash_to_jsp.jsp

<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; 
 charset=Big5">
<TITLE>Embed flash file in jsp page.</TITLE>
</HEAD>
<BODY bgcolor="#ffffcc">
<p><% out.println("This is embedded flash file 
                   in jsp page."); %></p>
<div style="position: relative; width: 400px; height: 
 300px; overflow:hidden">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
      codebase="http://download.macromedia.com/pub/shockwave/cabs
                /flash/swflash.cab#version=6,0,29,0" 
	   width="225" height="113">
      <param name="quality" value="high">
      <embed src="pic.swf" quality="high" pluginspage=
       "http://www.macromedia.com/go/getflashplayer" 
	     type="application/x-shockwave-flash" width="225" 
                   height="113">
      </embed>
    </object>
</div>
</BODY>
</HTML>

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"

Download Source File

                         

» View all related tutorials
Related Tags: c com orm table ant data join select form make tables tab for to between e ul result pe from

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

1 comments so far (
post your own) View All Comments Latest 10 Comments:

Hi,

This Sample example is pick out from the headache.

Thanks to RoseIndia and their Team.

Posted by MuraliMohan on Wednesday, 09.17.08 @ 17:08pm | #80082

Training Courses
Tell A Friend
Your Friend Name
Software Solutions
Least Viewed
Most Rated
Recently Viewed
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.