how can we play mp3 in jsp page using struts framework?
is dere any other way?
A JSP will not play anything. If you know how to provide a browser with these items in HTML in such a way that the browser will play them, then you do it exactly the same way in JSP.
You can also have a servlet behind a link that masquerades as different types of media files, but, once again, it won't actually be playing anything. It will simply be designating the content-type and streaming the data out, and letting the browser decide what to do with it.
Let me put it this way, Servlets and JSP (in relation to the client/browser) do nothing except provide content and accept input. Period. They cannot pop up any windows on the client, they cannot play sounds on the client, they cannot play movies on the client, they cannot read things directly from the clients disks, etc, etc. They can only send the client data and accept requests from the client.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.