Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: DIRECTING TEXT OUTPUT AT THE LOCAL MACHINE

  1. #1
    Junior Member
    Join Date
    Feb 2011
    Location
    Kochi,India
    Posts
    18
    My Mood
    Confused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default DIRECTING TEXT OUTPUT AT THE LOCAL MACHINE

    My program is hosted in linux server. Clients use WinXP. I've a method which processes data at the server side and generates a text output.
    This text file is presently being created in the server itself.

    Is there a way to redirect this output to the client machine harddisk? preferably desktop?

    Thanks in advance.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: DIRECTING TEXT OUTPUT AT THE LOCAL MACHINE

    How do the server and client communicate? HTTP?
    Can the server send the file to the client as a response to a client request?
    It will be up to the client code to write the file where it wants it to go.

  3. #3
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: DIRECTING TEXT OUTPUT AT THE LOCAL MACHINE

    Do you want to move the whole file to client or only the text?

  4. #4
    Junior Member
    Join Date
    Feb 2011
    Location
    Kochi,India
    Posts
    18
    My Mood
    Confused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: DIRECTING TEXT OUTPUT AT THE LOCAL MACHINE

    @ 777 --

    Sorry for the belated response. Yes. I would like the whole file to be shown at the client console and saved there. I tried invoking wordpad. Works fine in some machines. But on some other, the formatting went for a six. Is it possible to load this text file in a jsp?

Similar Threads

  1. Text output in GUI
    By andreas81 in forum Java Theory & Questions
    Replies: 4
    Last Post: June 26th, 2013, 09:36 AM
  2. Directing JButtons to functions?
    By scopolamine in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 10th, 2011, 11:22 AM
  3. Moving MySql Database from one machine to another machine
    By vaishali in forum JDBC & Databases
    Replies: 5
    Last Post: July 21st, 2010, 01:21 AM
  4. Replies: 1
    Last Post: April 7th, 2010, 03:44 PM
  5. printing output to console & to a text file at the same time...
    By prasanna in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: August 26th, 2009, 03:43 AM