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 23 of 23

Thread: User inputs something in box then sends it to ftp server via java?

  1. #1
    Junior Member Rozyn's Avatar
    Join Date
    Feb 2013
    Location
    Oklahoma
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default User inputs something in box then sends it to ftp server via java?

    So I want to make a program where the user would enter something (ex: Username and notes) and hit login/send and it would send it in a .txt (or something else I don't know) to my ftp server. How would I be able to do that exactly? I am a newb to java. Also wouldn't it connect to the ftp server with Ip:21 (21 is Ftp's default port).

    Sorry if this sounds weird to you :p

    skype: Rozyn.hacks (If you would prefer to help on skype more)
    Newby to java


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

    Default Re: User inputs something in box then sends it to ftp server via java?

    Are you going to write your own code for FTP ? See the RFC for how to implement FTP
    or use a third party package? I think the apache project has one.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member Rozyn's Avatar
    Join Date
    Feb 2013
    Location
    Oklahoma
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: User inputs something in box then sends it to ftp server via java?

    I plan on buying from a webhost that has FTP as well and use it to host my website and for ftp (The ftp will be very small bits of info) so I will just be using what they have for ftp (I would assume apache). I am not nearly a skilled enough coder to write my own ftp client XD.
    Newby to java

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

    Default Re: User inputs something in box then sends it to ftp server via java?

    Have you gotten a solution now?
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member Rozyn's Avatar
    Join Date
    Feb 2013
    Location
    Oklahoma
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: User inputs something in box then sends it to ftp server via java?

    What do you mean by that? No one else has posted on the thread or pm'ed me.
    Newby to java

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

    Default Re: User inputs something in box then sends it to ftp server via java?

    There were no questions in post#3 so I assumed you were done. If you have questions about the project, post them and the code that you are working on.
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member Rozyn's Avatar
    Join Date
    Feb 2013
    Location
    Oklahoma
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: User inputs something in box then sends it to ftp server via java?

    This will be more difficult than I figured to ask questions then... lol. I haven't even started on the code because I do not know how to do the code. I spend hours watching TNB, reading java books, and almost nothing.
    Newby to java

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

    Default Re: User inputs something in box then sends it to ftp server via java?

    There are lots of samples of code here on the forum
    and there is the tutorial: The Really Big Index

    Before starting on the coding, do some designing. Draw what the window should look like.
    Make list of the steps the code and user need to do for the program to work.
    If you don't understand my answer, don't ignore it, ask a question.

  9. The Following User Says Thank You to Norm For This Useful Post:

    Rozyn (February 2nd, 2013)

  10. #9
    Junior Member Rozyn's Avatar
    Join Date
    Feb 2013
    Location
    Oklahoma
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: User inputs something in box then sends it to ftp server via java?

    By designing do you mean the Graphical User Interface? If so then ok I will try, but I have heard that the GUI is harder than the actual code most of the time.
    Newby to java

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

    Default Re: User inputs something in box then sends it to ftp server via java?

    By designing I meant using paper and pencil to place the components at locations on a window. The stuff in a window is often called the GUI. Yes, writing the code to make the GUI be the way you want can be time consuming.
    If you don't understand my answer, don't ignore it, ask a question.

  12. #11
    Junior Member Rozyn's Avatar
    Join Date
    Feb 2013
    Location
    Oklahoma
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: User inputs something in box then sends it to ftp server via java?

    Oh I have that planned out in my head. Just a .png logo centered at the top, then a Username: then Password: thing
    Newby to java

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

    Default Re: User inputs something in box then sends it to ftp server via java?

    What's next?
    If you don't understand my answer, don't ignore it, ask a question.

  14. #13
    Junior Member Rozyn's Avatar
    Join Date
    Feb 2013
    Location
    Oklahoma
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: User inputs something in box then sends it to ftp server via java?

    Well I will draw it in paint for you: Java GUI - Slimber.com: Drawing and Painting Online

    What all would I need to know to do this (I plan on learning more java but I need to make application pretty quickly) [Preferably from that Java index on oracle that you linked me].
    Newby to java

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

    Default Re: User inputs something in box then sends it to ftp server via java?

    Sorry I don't open links to 3rd party sites.

    What all would I need to know to do this
    What is the "this" you want to do?

    See the tutorial for how to build a Swing GUI:
    http://docs.oracle.com/javase/tutori...ing/index.html
    If you don't understand my answer, don't ignore it, ask a question.

  16. #15
    Junior Member Rozyn's Avatar
    Join Date
    Feb 2013
    Location
    Oklahoma
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: User inputs something in box then sends it to ftp server via java?

    Just send little bits of info to my ftp server. I do not have a clue how to code that.
    Newby to java

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

    Default Re: User inputs something in box then sends it to ftp server via java?

    You said you were going to use the apache package for the FTP part. Download the package and read the API doc on how to use the package for what you want to do. I've never used the package and can't tell you how to use it.
    If you don't understand my answer, don't ignore it, ask a question.

  18. #17
    Junior Member Rozyn's Avatar
    Join Date
    Feb 2013
    Location
    Oklahoma
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: User inputs something in box then sends it to ftp server via java?

    Now you have got me confused.

    1.) I have no clue what the ftp part will be. Let's not go there yet.
    2.) I need more help coding the actual program for now.
    Newby to java

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

    Default Re: User inputs something in box then sends it to ftp server via java?

    If you want a GUI, start by reading the tutorial in post#14
    If you don't understand my answer, don't ignore it, ask a question.

  20. #19
    Junior Member Rozyn's Avatar
    Join Date
    Feb 2013
    Location
    Oklahoma
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: User inputs something in box then sends it to ftp server via java?

    Ok thanks! Also could you help me with the code for how it would record the text the user enters, then we get into the ftp shit?
    Newby to java

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

    Default Re: User inputs something in box then sends it to ftp server via java?

    Post the code you have so far and any questions or problems you are having with it.
    If you don't understand my answer, don't ignore it, ask a question.

  22. #21
    Junior Member Rozyn's Avatar
    Join Date
    Feb 2013
    Location
    Oklahoma
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: User inputs something in box then sends it to ftp server via java?

    I do not even know how to start atm.
    Newby to java

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

    Default Re: User inputs something in box then sends it to ftp server via java?

    Start with reading the tutorial.
    If you don't understand my answer, don't ignore it, ask a question.

  24. #23
    Junior Member Rozyn's Avatar
    Join Date
    Feb 2013
    Location
    Oklahoma
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: User inputs something in box then sends it to ftp server via java?

    Ok, I will PM you telling you when I am ready to have you check over my code so you don't have to keep looking at this thread. Thanks so much for all your help!
    Newby to java

Similar Threads

  1. Help! Client only reads first line server sends!
    By vess28 in forum Java Networking
    Replies: 2
    Last Post: December 2nd, 2012, 01:39 PM
  2. Replies: 2
    Last Post: October 27th, 2011, 08:51 AM
  3. simple ftp server and ftp client
    By simontkk2005 in forum Java Networking
    Replies: 4
    Last Post: January 26th, 2011, 10:29 AM
  4. [SOLVED] Problem trying to retrieve a file from ftp server
    By alexdd1987 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: December 16th, 2010, 06:27 PM
  5. UDP server sends thread application
    By Koren3 in forum Threads
    Replies: 2
    Last Post: April 20th, 2009, 11:46 AM