Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. File not being read by JSP

File not being read by JSP

Scheduled Pinned Locked Moved Java
javasysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fahim A Salim
    wrote on last edited by
    #1

    Here is my code of JSP

    <% if(request.getParameter("txtTextInput")!=null && request.getParameter("LangGroup").equals("English") ) {
    String file=CreateSoundFile( request.getParameter("txtTextInput"), "en");
    %>
    <embed src="<%=file%>" ></embed>

    while CreateSoundFile creates the sound file and give back its path but the sound file is not played on the client and if the program is being run 2nd time the previous text is being played on the client browser where as the file in the folder on server is changed. why the file is not downloaded at client when it exists on the serve :(( r

    A 1 Reply Last reply
    0
    • F Fahim A Salim

      Here is my code of JSP

      <% if(request.getParameter("txtTextInput")!=null && request.getParameter("LangGroup").equals("English") ) {
      String file=CreateSoundFile( request.getParameter("txtTextInput"), "en");
      %>
      <embed src="<%=file%>" ></embed>

      while CreateSoundFile creates the sound file and give back its path but the sound file is not played on the client and if the program is being run 2nd time the previous text is being played on the client browser where as the file in the folder on server is changed. why the file is not downloaded at client when it exists on the serve :(( r

      A Offline
      A Offline
      adatapost
      wrote on last edited by
      #2

      You have to upload music file and then after you may play it.

      A DATAPOST COMPUTER CENTRE (K.V Prajapati)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups