Help: how  to get text from IFRAME

<!-- The box where we type-->
<IFRAME class="mytext" width="100%" ID="mytext" height="200">
</IFRAME>
someone can tell me how i get text in my servlet from
<IFRAME>
thankx in advance...

someone can tell me how i get text in my servlet from
<IFRAME>
thankx in advance...Hmm. I think you are mixing something up here. Why would you use an IFrame for entering text? IFrame is used for including content from different HTML-pages inside your page.
If you want to have a textbox for an user to enter text into and submit it to a server, you need a form and a textarea inside that. Like this:
<form action="myServlet" method="post">
<textarea name="myArea">
</textarea>
<input type="Submit" value="Ok">
</form>Change the action in the form to reflect the mapping to your servlet.
Then you can just do a String enteredText = request.getParameter( "myArea" ); inside your servlet.
If you insist that you need to use an IFrame, I guess the only way to do it would be to write a Javascript function, that copies the contents from the IFrame to a hidden field before the page is submitted to your servlet. In your servlet you would read the value from the hidden field.
.P.

Similar Messages

  • How to get Text from (.txt) file to display in the JTextArea ?

    How to get Text from (.txt) file to display in the JTextArea ?
    is there any code please tell me i am begginer and trying to get data from a text file to display in the JTextArea /... please help...

    public static void readText() {
      try {
        File testFile = new File(WorkingDirectory + "ctrlFile.txt");
        if (testFile.exists()){
          BufferedReader br = new BufferedReader(new FileReader("ctrlFile.txt"));
          String s = br.readLine();
          while (s != null)  {
            System.out.println(s);
            s = br.readLine();
          br.close();
      catch (IOException ex){ex.printStackTrace();}
    }rykk

  • How to get text from column  labels in pivot using javascript?

    Hi, is it possible to get text from column labels in pivot using javascript? How?

    You don't get a response from a URLRequest, you get the response from a URLLoader:
    View this sample page for URLRequest and URLLoader and I think it'll make more sense to you.
    http://help.adobe.com/en_US/air/reference/html/flash/net/URLRequest.html#URLRequest()

  • Please Help: Automator to get text from Safari Reader into Text file

    Hello All,
    I was hoping that someone will be able to help me.
    I would like for automator to obtain article text from a website without me having to manually cut and paste it.
    I tried to put together a workflow to get text from webpage, but it unfortunatley get some information that I don't want for eg. Menu Bar Titles and additional links etc. What would be ideal is if I could only extract the data that shows when I use the Safari Reader function.  I have tried a jave Readability Script, but this also extract the same information. Is there anyway someone could please kindly help me out with a nice Applescript or something?
    If there is no way to do this, there could be another solution around this... if there was a way I could use automator to delete the first and last 10 lines of the text document.
    Again, any help will be much appreciated.
    Many thanks,
    VicandMeliJvR

    Hi David,
    Thank you for your feedback. I would be happy to use a screen capture program, but Quicktime X seems to only allow me to record audio and record the video separately. I will do this as a last resort, but it's a big pain to try to line up the video audio.
    Thank you! I will definitely do this if nothing else works.

  • How to get text from memory

    Hi All,
    How to get the text  from the memory for the corresponding line item in sales order.
    there is a D.B table STXH which stores the text.
    kindly explain from which of the fields we are used from the table STXH to get the text from memory,
    if possible please send me the sample code
    regards
    krishna

    Hi,
    You can use FM: READ_TEXT
    Parameters you need pass for the FM are: Text Name, Text ID, Text Object and language.
    Text Name will be the combination of Sales Order Number and Item Number
    Text Object for Sales Item Texts is VBBP
    Text ID is the ID that identifies the text
    To get the ID, do as below:
    1. Check an existing sales order
    2. Double click on the text which takes you to the editor.
    3. Use menupath: Goto->Header
    4. In the popup screen you can find the TEXT ID
    "Use the same for the FM
    Regards
    Eswar

  • Help , How to get data from database using recordset with UI API

    I want to get a data from database
    when I want to create recordset i notice that UI API didn't has record set
    so I created recordset using DI API (SAPbobscom.recordset and SAPbobscom.company)
    ======================================================
    Dim oCompanyUI As SAPbouiCOM.Company <<UI API
    Dim oRecSet As New SAPbobsCOM.Recordset << DI API
    Dim oCompanyDI As New SAPbobsCOM.Company << DI API
    '=====================================================
    oCompanyDI.Connect
    Set oRecSet = oCompanyDI.GetBusinessObject(BoRecordset)
    oRecSet.DoQuery ("SELECT T0.CardCode, T0.CardName FROM OCRD T0")
    SBO_Application.MessageBox oRecSet.Fields.Item(1).Value
    ======================================================
    but I got an error it said "you are not connected to company"
    I'm really don't have an idea about how to get a data from using UI API (exp I want to get a date or costumer code)
    can someone help me please, I really need it
    Thanks

    you need a single sign on
            Dim oDICompany As SAPbobsCOM.Company
            Dim sCookie As String
            Dim sConnStr As String
            Dim ret As Integer
            oDICompany = New SAPbobsCOM.Company
            sCookie = oDICompany.GetContextCookie
            sConnStr = SBO_Application.Company.GetConnectionContext(sCookie)
            If oDICompany.Connected Then
                oDICompany.Disconnect()
            End If
            ret = oDICompany.SetSboLoginContext(sConnStr)
            If Not ret = 0 Then
                SBO_Application.MessageBox("set Login Context failed!")
                Exit Sub
            End If
            ret = oDICompany.Connect()
            If Not ret = 0 Then
                SBO_Application.MessageBox("Company Connect failed!")
            End If

  • HELP - how to get photos from iphone after Telstra wiped it

    Hi
    I am asking this question on behalf of my sister. She had her second child last week and her husband took heaps of photos on his iphone from the birth and the first couple days in hospital, I'm not sure what model his iphone is but he only got it in the last couple months. On the weekend him and a mate mixed their phones up, his friend kept putting his pin code into my brother inlaws phone and by the time he reaised it wasn't his phone he had locked it up somehow (I don't have an iphone so I'm not sure about all of this!) They took it into the Telstra shop and they got the phone working again, but in the meantime it wiped all his contacts/photos etc that were stored on the phone. My sister was very upset as now they don't have any photos from when Charlie was born. The girl at the Telstra shop said they are gone forever and there is no way to get them back but I am hoping there is somehow - can anyone help us?
    Thanks
    Jade

    Sounds like the girl at Telstra did a restore of the phone and then wipe out all the data on your bro-in-law phone.
    Data could've been saved if your bro-in-law would've synced his phone to the computer he normally syncs too.
    By doing the restore there is no way to get the data back from the phone.  Sorry.

  • How to extract text from a PDF file?

    Hello Suners,
    i need to know how to extract text from a pdf file?
    does anyone know what is the character encoding in pdf file, when i use an input stream to read the file it gives encrypted characters not the original text in the file.
    is there any procedures i should do while reading a pdf file,
    File f=new File("D:/File.pdf");
                   FileReader fr=new FileReader(f);
                   BufferedReader br=new BufferedReader(fr);
                   String s=br.readLine();any help will be deeply appreciated.

    jverd wrote:
    First, you set i once, and then loop without ever changing it. So your loop body will execute either 0 times or infinitely many times, writing the same byte every time. Actually, maybe it'll execute once and then throw an ArrayIndexOutOfBoundsException. That's basic java looping, and you're going to need a firm grip on that before you try to do anything as advanced as PDF reading. the case.oops you are absolutely right that was a silly mistake to forget that,
    Second, what do the docs for getPageContent say? Do they say that it simply gives you the text on the page as if the thing were a simple text doc? I'd be surprised if that's the case.getPageContent return array of bytes so the question will be:
    how to get text from this array? i was thinking of :
        private void jButton1_actionPerformed(ActionEvent e) {
            PdfReader read;
            StringBuffer buff=new StringBuffer();
            try {
                read = new PdfReader("d:/getjobid2727.pdf");
                read.getMetaData();
                byte[] data=read.getPageContent(1);
                int i=0;
                while(i>-1){ 
                    buff.append(data);
    i++;
    String str=buff.toString();
    FileOutputStream fos = new FileOutputStream("D:/test.txt");
    Writer out = new OutputStreamWriter(fos, "UTF8");
    out.write(str);
    out.close();
    read.close();
    } catch (Exception f) {
    f.printStackTrace();
    "D:/test.txt"  hasn't been created!! when i ran the program,
    is my steps right?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I have a new MacAir and don't know how to get info from my USB stick and my SD photo card.  Can anyone help me please?

    I have a new MacBook Air and don't know how to get info from my USB stick and get info from my SD card.  Can anyone help, please?

    Plug the stick and/or card into the appropriate slots on the side of your Air. Do you see icons for the devices appear on the desktop? Click into them to see what files are there.
    Matt

  • I have the new iOS 7 and am getting texts from another family members phone and they are getting mine how do I disable this without changing accounts

    I have the new iOS 7 and am getting texts from another family members phone and they are getting mine how do I disable this without changing accounts

    Welcome to the Apple Community.
    You could simply set each device to only use a single telephone number (settings > messages > send & receive, but this isn't really an ideal solution since the other person can always change their settings and see your messages and send messages that appear as if they are from you. There is only one real solution and that's to have your own accounts.

  • I have the new iOS 7 and am getting texts from another family members phone and they are getting mine how to I disable this ??

    I have the new iOS 7 and am getting texts from another family members phone and they are getting mine how to I disable this ??

    You each need to have separate Apple IDs and separate user accounts. Better yet, separate computers as well.

  • HT202305 How to get text erase from I phone

    how to get text messages erase from I phone 6

    Do your contacts appear at http://www.iCloud.com after signing in?
    If so, you just follow the iCloud Setup instructions here: http://www.apple.com/uk/icloud/setup/mac.html

  • When I turned my 4s on today all of my contacts are gone. They are backed up in iCloud but I don't know how to get them from there to my phone. Aren't they suppossed to sync automatically over wifi?        Can someone help?

    Hello. When I turned on my Ipone 4s today all of my contacts were gone. They are backed up in iCloud but can't figure out how to get them from there back to my phone. Aren't them supposed to sync automatically over wifi? Can someone please help me?

    Hello jllew333
    Check to make sure that Contacts is toggled on to sync by going to Settings > iCloud. Also go to iCloud.com to see if the contacts are showing up there to see if it syncing those contacts.
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Regards,
    -Norm G.

  • HT201269 I recently switched from 4S to Galaxy S4. I am not getting texts from iphone senders. When the message is sent it goes as a imessage. How do I fix this??

    I recently switched from 4S to Galaxy S4. I am not getting texts from iphone senders. When the message is sent it goes as a imessage. How do I fix this??

    Turn off iMessage on the iPhone as should have been done prior to switching devices.
    Settings > Messages > iMessage > OFF

  • I unregistered my iphone but still am having issues getting texts from iphone users. Anyone know how to fix this?

    I unregistered my iphone but still am having issues getting texts from iphone users. Anyone know how to fix this?

    Turn off iMessage on the old iPhone.
    Restore the iPhone as new.
    Have the other iPhone users delete the current message thread, and start a new messae to you.
    Have the other iPhone users delete your contact, then re-add it.
    Go to ww.icloud.com and remove the device from your Find My iPhone.
    Go to appleid.apple.com and change your primary email address and/or password.
    Contact Apple Support at getsupport.apple.com for further assistance if these steps don't work.
    Wait about 30 days for the iMessage server to self-correct the issue.

Maybe you are looking for