aspose file tools*
The moose likes Servlets and the fly likes Playing audio/video in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Playing audio/video in jsp

Dishpal Bhaluja
Ranch Hand

Joined: Dec 30, 2007
Posts: 96
I am using struts action and doing like:



I retrieved a BLOB object in the form of byte[] array and set the response to jsp page.
The code is working perfectly,but my audio is opened using Media Player separately.

My aim is to embed the audio in my response. That is it should play within jsp (using plugin)

I know it can be done using embed tag.

But how can I dynamically call an action and set the embed tag's content

Can I do like <embed src=actionServlet></embed>

I have gone through :http://www.coderanch.com/forums/posts/preList/364096/1590971 but author itself hasnt replied yet.

Help needed from your part.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

Please continue any discussion in the original post.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Playing audio/video in jsp