File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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 : but author itself hasnt replied yet.

Help needed from your part.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Please continue any discussion in the original post.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Playing audio/video in jsp
It's not a secret anymore!