Hello Experts there,
I guess I am posting in the right forum. If you think this should be in some other forum, it is fine with me.
Here is my problem,
I am working on a web application using
Jsp,
struts and
EJB. When a form is submitted, I have to validate the form and show the error messages to the user. To do this I am using <html:errors/> tag of struts.
Now, when I show these error messages, I have to generate a beep sound, which creates a feel that there is something wrong.
I have done some search on web and found that Javascript does not have method to generate these sounds where as
Java has one.
I cannot call this method directly from javascript because, IE does not support this call whereas Netscape navigator does. Workaround for this would be to write an
applet and call this applet. Hence I have written a applet called JavaBeep that has method called beep().
This is how I have included applet in my JSP
when I try to run my Jsp I get Applet notinited error.
When I look at error, I see ClassNotFoundException. It seems that the classloader is looking for JavaBeep class somewhere. How can I give the codebase relative to my web component?. Is there anything wrong with the above declaration?
Is there is any alternate solution for my problem?
thank you