Sending output generated to some other program all together

Hi all,
Is it possible to send the output, which will be the string normally to some other program alltogether.
Say there is a java program which outputs a normal string and i have to send this string to a textbox
in a webpage through this java program itself, I dont have any control on the webpage coz its
just a page displayed on my browser, but i have to send this string from my java program to the
textbox which is placed in some location on the webpage say ( x, y ) .
Do any body have the idea how this can be achieved
plzzzz do help
One way is to copy paste but it becomes manual but i want it to be automatic.
Thanks in advance

import java.io.*;
public class Two
  public static void main(String args[])
   System.out.println("hello");     
public class One
  public static void main (String args[]) throws Exception
    Process proc = Runtime.getRuntime().exec("java Two");
    BufferedReader br = new BufferedReader(new InputStreamReader(proc.getInputStream()));
    System.out.println("value obtained:"+br.readLine());
}if you run as java One you can get the value 'hello' written to the stream by another process i.e. class Two
Instead of class One you can do teh same from a jsp......
Would that help:

Similar Messages

  • What is the best way to properly activate the Lightroom Student Edition? Is the Student Edition a permanent program or does it deactivate after 2-4 years like some other programs that are student versions?

    I just purchased the student edition of Lightroom! I am very excited to use it and start creating beautifully edited photos but I'm a little unsure about a few things. It says I have to prove my eligibility to use the student edition which won't be an issue but what is the quickest and easiest way to submit this proof? Also I am concerned that the student edition will be temporary and I will have bought this program only to have it expire at the end of 4 years like some other programs that are student versions. Is the student edition of Lightroom a permanent program that I will have for life or will it deactivate after I graduate?

    When I purchased my academic version of Lightroom, it was a package set. Inside was a yellow card with the instructions on how to verify that I qualified for the academic discount. I submitted my academic e-mail address and other info as requested on that yellow card. Within 5 min. I received my serial number. Very straightforward. I had no problems whatsoever.
    There is only one version of the Lightroom program itself. The only difference is in the licensing and pricing. If you qualify for the academic discount, by all means use it. You are purchasing the same Lightroom program that anyone else does. It doesn't expire, there are no missing features, and it can be upgraded when new major versions are released. Those upgrades will cost the same as they cost for any other person, regardless of how they purchased Lightroom.
    You can confidently move ahead with obtaining your serial number. The only thing you are doing differently is paying a lower initial purchase price because of your academic status.

  • Application Launch Failure (Excel, Word and some other programs)

    Error message on the screen:
    Application Launch Failure
    The application "Word" could not be launched because of a shared Library error: "<Microsoft Word><Microsoft Word><CarbonLib>"
    Console Message:
    10/10/09 9:21:15 PM [0x0-0xd40d4].com.microsoft.Word[1477] /Applications/Microsoft Office 2004/Microsoft Word[1477] Launch failed with error code -2804 (cfragNoLibraryErr) for application /System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp
    10/10/09 9:21:15 PM com.apple.launchd[1334] ([0x0-0xd40d4].com.microsoft.Word[1477]) Exited with exit code: 12
    This also happens with Excel, Word and some other programs.
    Anyone have any ideas?

    Oops, I should have mentioned that I've repaired permissions both from a DVD bootup as well as from the current hard drive. I reinstalled the last update.
    I have Time Machine so I guess I could go back to a previous state if I knew what the problem was.

  • How to get the console output generated by a executable program?

    when I am trying to use method getOutputSteam of Process to gain the outputStream,I got nothing!
    I have also tried to use stream redirect,also no result!
    please help me! Thank you in advance!
    my main code are below:
    Process ps=Runtime.getRuntime().exec("xxx.exe");/*xxx.exe is a executable program which will generate a console with the message I want to gain.*/
    int exitVal= ps.waitFor();
    if(exitVal==0){
    BufferredReader br = new BufferedReader(new InputStreamReader(ps.getInputStream()));               String st;
    while((st = br.readLine()) !=null){
    System.out.println("write:"+st);
    }//my result show that I got nothing from the progam.
                                                           }

    I've seen this kind of problem with an offending xxx.exe. Generally it means that the program isn't flushing its output immediately, so your java program never sees it.

  • How to get data  from an internal table in some other program

    I would like to get data from the internal table in the other program. When I using FM "LIST_FROM_MEMORY" to get the data, it doesn't work and the exception is not fount.
    If any special code need in the other program, like write data to memory .
    Many thx .
    From Ross Wang

    Hi
    <li>You need to have interaction if you want to use EXPORT/IMPORT statments.
    <li>The internal tables in both programs must be same
    <li>Program one ..Calling program
    REPORT ZTEST_NOTEPAD.
    DATA: BEGIN OF it_t001 OCCURS 0,
            bukrs TYPE t001-bukrs,
            butxt TYPE t001-butxt,
          END OF it_t001.
    START-OF-SELECTION.
      SUBMIT ztest_notepad1 AND RETURN.
      IMPORT it_t001 FROM MEMORY ID 'ZTEST_T100'.
      LOOP AT it_t001.
        WRITE:/ it_t001.
      ENDLOOP.
    <li>Program two ...Called program
    REPORT ztest_notepad1.
    DATA: BEGIN OF it_t001 OCCURS 0,
            bukrs TYPE t001-bukrs,
            butxt TYPE t001-butxt,
          END OF it_t001.
    START-OF-SELECTION.
      SELECT * FROM t001 INTO CORRESPONDING FIELDS OF TABLE it_t001 UP TO 10 ROWS.
      IF sy-dbcnt > 1.
        EXPORT it_t001 TO MEMORY ID 'ZTEST_T100'.
      ENDIF.
    I hope that it gets you some idea.
    Thanks
    Venkat.O

  • How to send a message to some other phone using bluetooth?

    I tried using youtaggedme MIDlet. I installed it on my phone and my friend's phone. It was running on my phone but it was off in my friend's phone.
    I sent a message using the software and my friend received it as a TXT file and when he pressed "view" he could see it in a new screen. how could he receive the message even though he did not run the software.
    how can i do this by my self-written program. please guide me. i just need some hints and i can read more and develop it.
    i would highly appreciate any help.

    can any body suggest me the solutionGoogle returned LOTS of information regarding how to do this. Give it a try
    urgent please.............It's not urgent to anyone but you and this won't encourage anyone to help you any faster.

  • Generating keyevents in other programs

    Hi,
    I am working on a virtual keyboard using a web camera that monitors a piece of cardboard that acts as the keyboard. I have the detection of the fingers working but I am now trying to have notepad open and when the user enters a letter have that letter appear in notepad.
    The only thing I can think of is that the my java program would have to generate something similar to that event generated by a keyboard, but I don't have an idea of how this could be done or even if this can be done by java or not.
    Any help would be much appreciated.

    you can use the java.awt.Robot
    Be careful though: The Robot is the dark side of the force in the Java world

  • Firefox can not read Hotmail messages and some other program input fields (Hotmail OK if add-ons disbled)

    Yesterday Hotmail was fine under Firefoax, today messages cannot be opened, cannot access bank account customer number, cannot enter text into comments section in newspaper. Can access Hotmail and newspaper comments on Opera. But I can access Hotmail on Firefox if I start up with add-ons disabled option, but when disable all add-ons individually on Firefox normal access, it's back to not working again. Have also gone back 4 updates on Windows Vista Home Basic and disabled the excellent Rapport bank security. Tried to disable Foxit reader previously (as older posts advised) and no difference. Any ideas ?, In the meantime will keep Opera open for Hotmail and try access bank tomorrow. Thanks all.

    Thanks Jcher2000 and cor-el for your suggestions, I think have solved the mystery, Firefox add-ons were all ok, but EXTENSIONS contained a program called Price-Peep which has caused the problem. Solved by elimination;
    Shut down ALL Add-ons AND extensions, Hotmail worked, re-introduced all Add-ONs, one at a time, all worked OK, then did the same with extensions, worked down the list and, at the second to last (how unusual), Hotmail stopped working with Pricepeep enabled, then restarted with it Ppee disabled, checked the last program and all still working in Hotmail. I have just looked at the Pricepeep site and I think it was added when I took delivery of a spare webcam which didn't have software so downloaded software from the web (cannot check back site as have cleared all history caches in sorting this mes) so ise people NOT to agree to download this crap. Just emailed the idiots )© 2012 Verti Technology Group). Now, how do I report this to Mozilla and Hotmail ?... Thanks folks, from a very pissed off person in France...Colin.

  • Can I print small calendars in iCal or from some other program?

    I have a calendar in iCal that is used to keep track of my girlfriend's class and work schedule (which is wildly different from day to day). I would love to have this calendar on my iPhone but it must be in a different color like it is in iCal so that I can differentiate her schedule from my own easily. I thought a nice solution might be to simply print a small business card sized week view of her schedule and keep it in my wallet, however I can't seem to get ical to print a week view on anything smaller than an 8x10 sheet of paper.
    It would be a great help to me if you could show me how to either sync to my iphone in a different color or print a small portable "cheat sheet" that I can carry with me...
    By the way Apple, if you're reading this, how come we can't keep calendars that are separate in iCal separate in iPhone? Unless I am just being a dunce on this one, you should consider making this possible on the iPhone.

    Ok it is a long one but it is possible to resize it without any external programs.
    Only one calendar is synced to iPhone (ie one colour)
    To print your calendar small:
    Choose File/Print
    Select everything you want on the calendar, don't worry about sizes yet and click Continue
    In the print window, choose Paper Handling and select Scale to fit paper size
    Choose the size you would like (business card?)
    You can either print or Save to PDF

  • Office scheduling using a iCal or some other program.

    Is it possible to do a year's worth of office scheduling using iCal--that is 6 doctors with 6 different kinds of schedules. For example, one wants to do walkins for a week each month. The others want to do it every 4th day.
    Also we'd like to be able to set up a year's schedule showing when each person is on overnight call, which one is on call for various holidays, etc.
    Surely there's a program to do that.

    Have you tried repeating events?
    AK

  • HT4061 I tried to update dictionary but couldn't do so and it got hanged up the icon on my mobile screen shows waiting i can't delete it as it is not installed also same waiting problems appears some other programs please tell me how delete this shoes wai

    Please let me know over come this problem

    Try to restart your phone by holding the sleep/wake and home buttons until the phone turns off ignoring the slide to power off message. Then press the sleep/wake button to turn it back on.

  • Does anyone know how to convert a Filemaker flat file to some other program that runs on Lion?

    I have a flat file of 200 recipes in Filemaker. It is searchable and prints the recipes on 4x6 cards.
    How can I get the same funtionality without getting an expensive new version of FM that runs on Lion?

    In order to password protect files or folders, you need to create an encrypted disk image. Then what ever is copied to the disk image will be protected.
    The directions to do this are here
    http://support.apple.com/kb/ht1578
    Allan

  • Can i acces my apps and music on a pc by i cloud or some other program?

    i have a macbook pro buti was wondering if for example on my freinds pc i could acces my apps? i tought maybe with i could? does i cloud only work with Apple products?

    iCloud Control Panel for Windows v1.1 - http://support.apple.com/kb/DL1455

  • How can we call creen of one program from some other dynpro Program

    Hi,
    Is it possible to call a screen of one program from some other program as pop up or full scree.
    please give you input if it is possible.
    Thanks in advance.
    Thanks and Regards,
    Praveen.

    Hi,
    But is there is any function module through we can call screen of some other program. PLease let me know if you are aware of that.
    Thanks

  • Some binary data recoreded by labview cannot open by other program

    I have got some binary data which is recorded by a labview program. When I use some other program to open it (e.g. matlab, notepad, MS excel), it become some strange character, but when I use another labview retrieval program to open it, there is no problem. What happen?
    The original data is 32 bit data sets which are separated by a <CRLF>.
    The recording program (HS-Acquis.llb), the retrieval program (Advanced Viewer.llb), original data file (C1010710.480245) and the data file after retrieval (C1010710.480245.txt) was attached
    phy_mechanic
    Attachments:
    attachment.zip ‏1279 KB

    The data seems like it can only be read by LabVIEW because LabVIEW is set up to properly read the binary data and it is simple for a user to do.
    For matlab to read the data, it will have to be properly configured.
    FOPEN     -     Open a file
    FREAD     -     Binary file read
    FWRITE   -     Binary file write
    FTELL      -     Return the current file position
    FSEEK     -     Set file position indicator
    FCLOSE   -     Close a file
    An example is given from http://www.mathworks.com/support/tech-notes/1400/1​403.htm:
    %This m-file is a short example of how to read and write a binary file
    %in MATLAB using low level routines
    %write file
    fid = fopen('square_mat.bin','wb') %open file in binary write mode
    fwrite(fid, 'This is a square matrix', 'char'); %insert a header
    fwrite(fid, [1 2 3; 4 5 6; 7 8 9]', 'int32'); %write data to file
    fclose(fid); %close file
    %read in the same file
    fid = fopen('square_mat.bin','rb') %open file
    bintitle = fread(fid, 23, 'char'); %read in the header
    title = char(bintitle')
    data = fread(fid, [3 inf], 'int32') %read in the data
    data_tranpose = data' %must transpose data after reading in
    fclose(fid) %close file
     As you can see, the data type, size, array size, etc. has to be explicitly defined. In addition, as Dennis alluded to, LabVIEW stores binary data in Big-Endian format, wheras most windows applications use little endian. I assume matlab is one of those applications...but I am not a huge matlab developer. Google may have more information on that. You can use a typecast in matlab to convert big to little and little to big, however, so that may be a great place to start. Please see http://www.mathworks.com/access/helpdesk/help/tech​doc/ref/typecast.html
    Of course, our wonderful applications engineers at National Instruments have already done the above work for you and developed Knowledgebase 11SF83W0: How do I Transfer Data Between The MathWorks, Inc. MATLAB® Software Developm...which is easily searchable from ni.com knowledgebase category using 'matlab binary'
    Rob K
    Measurements Mechanical Engineer (C-Series, USB X-Series)
    National Instruments
    CompactRIO Developers Guide
    CompactRIO Out of the Box Video

Maybe you are looking for

  • Calendarview using APEX

    Dear Forum Members, Do you know, if there is any possibility to implement a calendar database including something like the week view of Apples iCal (luxury) or at least something like the week view of WebCalendar (http://www.k5n.us/webcal-screenshots

  • Lost plug-in settings after 7.2 upgrade

    Hi after upgrading to 7.2 I seem to have lost Logic's factory presets for it's channel strip settings. On the arrange page, I used to go to the channel strip and click on the "inserts" triangle and one of the options was "factory". This option is no

  • Install Windows 8 on FreeDos

    Hi Sir, I bought HP Pavilion Laptop yesterday with freedos and i want to install Windows 8 Pro 64 Bit on it I found 3 partions 1) System 2) Primary 3) Unallocated Partions All of them i haven't a permission to install the windows on, Can you tell me

  • How to delete blank pages in pdf

    How do you delete blank pages in a PDF?

  • DELETE syntax for RDF triplets

    Hi, In the ORACLE RDF documentation only the syntax for inserting an RDF triplet is specified. It is: INSERT INTO articles_rdf_data VALUES (2, sdo_rdf_triple_s ( 'articles', '<http://www.nature.com/nature/Article1>', '<http://purl.org/dc/elements/1.1