Simple web app idea - how to implement the servlet?

I want to make a simple web application, that all it does is to allow a user to record his voice, using his microphone, and then save this audio file on my server (maybe allow him to hear it again, later). BUT -
I don't quite understand how it should work - I guess there is a java library to do the recording, that's not a problem, but how can I record via the web??
how can I use the java servlet (which is from the examples I've seen usually displays some new content upon a certain request, nothing more..) to do it?
(I mean. I don't fully understand the communication with the servlet, I think. I know that the servlet has a method for dealing with POST messages, for examlpe. but how can it help me do what I described above?)
hope I made my self clear, thanks :)
Kogan.

A Servlet is normally there to pre/postprocess requests. For example obtaining a list of records from DB and forwarding the request to a JSP for presentation. Or gathering, validating and/or converting request parameters from a form submit and preparing the result and forwarding the request to a JSP for presentation.
Now, you want to record a voice. If you want to do this with Java, then you'll need to run this at the client machine. As servlets run at the server machine, it can't record the voice, it can at highest only retrieve the voice stream and store it at the database or local disk. To record a voice using a web application, best what you can do is to create a Java applet or Java web start application which you on its turn embed in a JSP page for presentation. The applet or application on its turn can make use of the JMF API to record a voice. Then let the applet or application send the stream to the servlet so that it can process it.
Techniques you'll need to learn about:
1) Applet or web start application (JNLP).
2) AWT and Swing (for UI of applet or application).
3) JSP and HTML (to embed applet or application in web page).
4) JMF (to record voice).
5) Servlets (to process URL requests, the request body may contain the voice stream).

Similar Messages

  • Missing update for a game app after updating ios7 any ideas how to get the update

    Went to update a game app this morning, had already hit update when the i os7 update screen popped went through with the ios update but after ipad restarted the game update is completely missing any ideas how to get the update back no luck so far

    Hello THEVIN7
    The next step if it is not updating, would be to delete the app and then download it again. Check out the general troubleshooting for apps purchased form the App Store.
    iOS: Troubleshooting apps purchased from the App Store
    http://support.apple.com/kb/ts1702
    Regards,
    -Norm G.

  • How to set the servlet context path manually in Tomcat web server.

    I tested some servlets by putting them in the folder , which the tomcats examples application uses (ie Tomcat 4.1\webapps\examples\WEB-INF\classes\) and it appeared to be working fine.
    I was calling the servlet like this : http://localhost:2006/examples/servlet/TestServlet
    But when I installed my own WAR file in the server , the servlet is not working now. now the new location of my servlets is : Tomcat 4.1\webapps\MyApp\WEB-INF\classes\
    and I'm trying to call the servlet like this : http://localhost:2006/MyApp/servlet/TestServlet
    The error , what i'm getting is :
    description :The requested resource (/MyApp/servlet/TestServlet) is not available.
    Some body please tell where I'm making the mistake ? I believe this may have something to do with the servlet context path setting. If anybody has any idea , how to set the path..will be much appreciated.

    Thanx for your reply , at first I was not using any web.xml(since not mandatory) but even after using the web.xml file the error is coming . Please have a look into the contents of the web.xml file and let me know if you find any problem...
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>TestServlet</servlet-name>
    <servlet-class>TestServlet</servlet-class>
    </servlet>
    </web-app>
    one more thing I would like to tell you here. I was just looking into the configuration of Iplanet web server..I found that , there are options to set the servlet container path (like : - Prefix: /servlet
    Servlet Directory: /ecomm/iplanet/nes60/product/docs/container )
    so from here I came to know that "container " is the folder where we should put our servlets and it has URI as "servlet" but yet I'm not able to find any option in the Tomcat Web server to set the servlet container to any different directory.
    If you have any idea please let me know.

  • Hello, I just got an iPhone 4S and it seems that the bluetooth function in it doesn't work. I tried few times to pair it to other non Apple phones and it never worked. Does anyone has an idea how to solve the problem? Tks.

    Hello, I just got an iPhone 4S and it seems that the bluetooth function in it doesn't work. I tried few times to pair it to other non Apple phones but it never worked. Does anyone has an idea how to solve the problem? Tks.

    This is not a feature of iPhone, iPad or iOS.
    Bluetooth is supported for stereo headsets/speakers, handsfree telephone
    devices/headsets, some keyboards, some peer-to-peer apps from the
    app store and internet tethering where provided by the carrier.
    Other than this it will not connect to a phone/computer/device.  (thanks to ckuan for the wording)

  • Some email images do not show while using the icloud web app.  I can see the images on my IOS devices and in gmail but I only see a small gray box in the icloud web mail app.  Load HTML images is checked in preferences.

    Some email images do not show while using the icloud web app.  I can see the images on my IOS devices and in gmail but I only see a small gray box in the icloud web mail app.  Load HTML images is checked in preferences.  Is there a solution to this issue?

    I've seen the opposite issue.  My wife recieved an email with jpg attachments.  She couldn't see or print them on her iPhone 4S but they showed up fine in iCloud or in the mail app.  I had her forward the email to herself and then they showed up.  I assume there is an issue with how Apple is processing the attachments and resending causes them to get reformatted in a way that makes them easier to handle.
    So yeah.  Seems like some bugs.  Hope Apple fixes them soon.

  • How to implement the FCKeditor in the WPC

    Hi all,
    can anyone tell me how to implement the FCKeditor in the Web Page Composer?
    I failed to implement TinyMCE because of the domain relaxing thing...
    Thanks a lot
    Steffi

    It's one of J2EE Patterns - Value List Handler.
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/ValueListHandler.html
    Here is some implementation.
    http://valuelist.sourceforge.net/
    and some article
    http://www.devx.com/Java/Article/21383
    Just google "J2EE paging"

  • How to implement the search help exit to MM01 for Material by product hiera

    Hi,
    How to implement the search help exit to MM01 T-code for Material by product hierarchy,
    but system default it gives the data from MVKE table, my client wants from MARA table,
    i created the one Function Module, write this code in that FM.
    IF CALLCONTROL-STEP EQ 'DISP'.
    REFRESH RECORD_TAB.
    SELECT * FROM MARA INTO TABLE RECORD_TAB
    WHERE PRDHA = 
    ENDIF.
    I Face the problem what variable i have to pass in WHERE CONDITION, FROM THE MM01 T-code.
    is't require to IMPORT variable from MM01 program, what is that import variable, please give me the solution.
    thanks to all.

    Hi there..
    check my web blog on search help exit...
    [Search help exit code|https://wiki.sdn.sap.com/wiki/x/du0]

  • Seek advices on simple web app

    weblogic11g, RDBMS11gr2
    skills: PLSQL, and limited in J2EE programming.
    I am a DBA for the cust app. I'd like to create a simple web app for our help desk to run a couple of queries against the app's database, and execute a couple of the statements to resolve the issues if found from the queries.
    I'd like to deploy the web app war the WL without not requiring additional resources such as named JDBC data sources or JMS queues.
    Please advise me what minimum do I have to have to make this simple web app.

    Hi,
    The below URL should help you
    http://docs.oracle.com/cd/E18476_01/doc.220/e18479/deploy.htm
    Thanks & Regards,
    Murali.
    =============

  • Please give me idea how I highlight the gird row which have

    Sir
    I have gird with 5 column
    Vno
    Code
    Dept
    Date
    Amount
    Sir my need is which record have above 5000 amount that color read and other color blue
    It means above 5000 highlight in grid
    Please give me idea how I highlight the gird row which have above 5000 maount
    Thank
    aamir

    PROCEDURE pr_Set_VA (p_VA IN VARCHAR2) IS
    v_Feld VARCHAR2 (30);
    v_Item VARCHAR2 (61);
    v_Block VARCHAR2 (30);
    BEGIN
    v_Block := :SYSTEM.CURSOR_BLOCK;
    v_Feld := Get_Block_Property (v_Block, FIRST_ITEM);
    WHILE (v_Feld IS NOT NULL) LOOP
    v_Item := v_Block || '.' || v_Feld;
    Set_Item_Instance_Property (v_Item, CURRENT_RECORD, VISUAL_ATTRIBUTE, p_VA);
    v_Feld := Get_Item_Property (v_Item, NEXTITEM);
    END LOOP;
    END;

  • Within redbox I can not click on a movie and get information about it, instead I get an error message that says that the situation may be temporary. yet i keep having the same problem. Do you have any idea how to fix the problem?

    Within redbox I can not click on a movie and get information about it, instead I get an error message that says that the situation may be temporary. yet i keep having the same problem. Do you have any idea how to fix the problem?

    Did you delete all receipts with iDVD in the file name  with either a .PKG or .BOM extension that reside in the HD/Library/Receipts folder and from the /var/db/receipts/  folder before installing the new copy?  If not then do so and delete the new application also.
    Click to view full size
    Then install iPhoto from the disk it came on originally and apply all necessary updaters: Apple - Support - Downloads
    OT

  • I am trying to set up my newly purchased Apple TV but when I enter my network password while setting up, I am not able to enter the Submit button, any idea how to hit the visible submit button that is visible on screen but not responding?

    I am trying to set up my newly purchased Apple TV but when I enter my network password while setting up, I am not able to enter the Submit button, any idea how to hit the visible submit button that is visible on screen but not responding?

    You need to use the right arrow on the remote to go all the way to the right. The submit button will be highlighted and you can then press select on the remote to proceed.

  • I have recently had my hard drive replaced due to a fault whilst in Germany working. Happy with the replacement, however when i go to log on as a user that screen is in German? Any idea how to change the language?

    i have recently had my hard drive replaced due to a fault whilst in Germany working. Happy with the replacement, however when i go to log on as a user that screen is in German? Any idea how to change the language?

    Greetings Lex,
    Kind of you to comment ... but you are also adding years to my signature!   I know I'm 76 but I don't want to think about it. 
    Regards  71.

  • Office Web Apps - Office Web Apps was unable to find the specified certificate

    Hello,
    Let me start by saying I did not see a forum listed for Office Web Apps and figured the SharePoint forum would be the second best place to post this.  With that said, here's my issue...
    I installed OWA 2013 on a Windows Server 2012 (not R2) VM and installed all the prereqs as described here: http://technet.microsoft.com/en-us/library/jj219455(v=office.15).aspx  Since this is a test environment, I'm planning on using a self-signed
    cert which appears to be supported based on info found here: http://technet.microsoft.com/en-us/library/2e147f11-6f47-46bc-90bf-b2f179958d11(v=office.15)#certificate.  
    I created the cert using the following command:
    New-SelfSignedCertificate -DnsName owa.test.local -CertStoreLocation cert:\LocalMachine\My
    I then edited the cert's properties in the Cert Manager MMC snap-in and added a friendly name of "2014_OWA_Cert".  I then proceeded to try and create the OWA farm by running:
    New-OfficeWebAppsFarm -InternalUrl "https://owa.test.local" -CertificateName "2014_OWA_Cert" -EditingEnabled
    This produces the following error:
    New-OfficeWebAppsFarm : Office Web Apps was unable to find the specified certificate.
    At line:1 char:1
    + New-OfficeWebAppsFarm -InternalUrl "https://owa.test.local" -CertificateNa ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (:) [New-OfficeWebAppsFarm], ArgumentException
    + FullyQualifiedErrorId : CertificateNotFound,Microsoft.Office.Web.Apps.Administration.NewFarmCommand
    What gives?  

    Hi Waqas
    Thanks for your help with this. I had a look at both posts, the URL works fine from the WAC server and I am not using a System account to test docs.
    Also, this is a production site that is accessible over the Internet, so we are using https therefore the WOPIZone is external-https.
    Issue #3 in the above blog link does not reflect the same error I see on my servers.
    I also had a look at the information in this link: http://technet.microsoft.com/en-us/library/ff431687.aspx#oauth
    Problem: You receive a "Sorry, there was a problem and we can't open this document" error when you try to view an Office document in Office Web Apps.
    If you added domains to the Allow List by using the
    New-OfficeWebAppsHost cmdlet, make sure you’re accessing Office Web Apps from a host domain that’s in the Allow List. To view the host domains in the Allow List, on the Office Web Apps Server open the Windows PowerShell prompt as an administrator and run
    the Get-OfficeWebAppsHost cmdlet. To add a domain to the Allow List, use the
    New-OfficeWebAppsHost cmdlet.
    I have not added any domains to the Allow list so this did not help either. Should I add the domain?
    Any further help with this is much appreciated.
    Thanks again.
    Yoshi

  • How to implement the schema validation with XSD in adapter module

    Dear All,
    I am trying to develop a EJB as the file adapter mudule.
    Please guide me how to implement the schema validation of the source message with XSD.
    Or provide me the relative resources about this task.
    Thanks & Regards,
    Red
    Edited by: Grace Chien on Nov 19, 2008 8:23 AM

    Hi Grace,
    You can do the xml scema validation in PI7.1 version directly.
    To develop the adapter module for xml schema validation
    Validating messages in XI using XML Schema
    Schema Validation of Incoming Message
    Regards
    Goli Sridhar

  • How to implement the shared lock in a  table view

    Hi,
    How to implement the shared lock in a  table view.for multiple users to edit on this same table.
    Thanks in advance
    Swathi

    Hi,
    Please refer this link to find solution to your querry.
    Hope it helps.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c322c690-0201-0010-fb86-811c52b0acc2.
    Regards,
    Rahul

Maybe you are looking for

  • My HP C6200 will not print, window not capatible, never before,last 4 days

    I had a box come and say this version of firefox won't work with my HP C6200 printer. Last 4 days or so and was never like this before. Any fixes? Have I inadvertently caused myself a problem. I updated firefox and will try to update HP, my impressio

  • Ibook g4 133 backup battery???

    Hi, I have never had this problem and i always let my computer die on battery power but lately my ibook runs out of juice and when it starts up via powercord it has changed the date..... never did that in the 2 years i have owned this one or the one

  • Overwrite files twice?

    This problem just started happening today.  For some reason, Illustrator CS3 now needs to be told twice to overwrite files. Here's what happens: Select File/Save as... Dialog box comes up asking where to save the file. Navigate and select a file to o

  • My Ipod crashed and I can't restore it.

    When I try and restore it, it says I need to update my firmware but when I go to install the firmware it extracts but then I get an error message. It won't let me update to 5.0 or any earlier firmware. Help!!

  • Advice before buying Macbook Pro and Final Cut Studio

    Hey there I'm looking for advice before I buy my first Mac. Currently editing SD video using Windows PC, Quad core, and Sony Vegas Movie Studio. Now I want to edit HD (from Canon5Dii) and plan a move to Macbook Pro & FCStudio. What hardware configura