Hi all,
i am trying to invoke a audio file from my jsp . The application compiles
well but when i run it i does not do anything.
here is the code snippet i used for testing. let me know if anything is
wrong in this.
=======================
import java.awt.*;
import java.applet.AudioClip;
import java.applet.Applet;
import java.net.*;
public class audioFromApplication
{
public static void main(String ar[])
{
try
{
URL url = new URL("file:D://WINNT//Media//ringin.wav");
AudioClip ac = Applet.newAudioClip(url);
ac.play();
}catch(Exception e)
{
System.out.println("error");
e.printStackTrace();
}
}
}
==================================
Regards
Ramesh Kesavanarayanan
Electronic Data Systems
Steeple Reach,
25, Cathedral Road,
91-44-811 3801 to 15 ext :2186
91-44-233 0380 (res)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets