Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Playing audio/video in jsp

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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 :https://coderanch.com/forums/posts/preList/364096/1590971 but author itself hasnt replied yet.

Help needed from your part.
 
Sheriff
Posts: 67596
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please continue any discussion in the original post.
 
    Bookmark Topic Watch Topic
  • New Topic