aspose file tools*
The moose likes Struts and the fly likes Struts2 Play audio file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 Play audio file" Watch "Struts2 Play audio file" New topic
Author

Struts2 Play audio file

Dev Anand
Ranch Hand

Joined: Aug 30, 2009
Posts: 41
Hi,
I have written following code to play audio file. It is neither showing any error message nor playing the mp3 song.



I'm calling the above class from jsp file as below :



can anybody help me why its not getting played?

Thank you.

Regards
Dev Anand. P
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

Struts and JSP code run on the server, so I'm not sure your code even does what you want it to do (not to mention using Java code in JSP's is a Bad Idea).
If you want to play a file for the user through the browser, you should probably look at the java.applet.Applet play() method.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
wood burning stoves
 
subject: Struts2 Play audio file