wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60766
    
  65

Please continue any discussion in the original post.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Playing audio/video in jsp
 
Similar Threads
Embed TIFF image in response
Not able to write Binary Data
Struts with Ajax
How to pass jsp values to flash?
play a wmv file in jsp