Results 1 to 8 of 8
  1. #1
    eyeamchito is offline Member
    Join Date
    May 2010
    Posts
    3
    Rep Power
    0

    Default Interacting with a website

    I'm trying to automatically send a message to someone in a social network. I have the message open with the persons name that I want to send it to. I'm having trouble pasting text into the text area and then pressing the send button. I don't know where to begin and how to approach this. I've looked at JSP but not so sure if this is the right way to go. If anyone has any ides let me know. Thanks in advance.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,607
    Rep Power
    23

    Default

    Can you describe what you are doing in your java program a bit more?
    What does JSP have to do with this? Do you have a server you're writing code for?

  3. #3
    gcalvin is offline Senior Member
    Join Date
    Mar 2010
    Posts
    953
    Rep Power
    5

    Default

    Which social network are we talking about? If they have a published API, you should use it rather than trying to do ad-hoc browser emulation.

    -Gary-

  4. #4
    eyeamchito is offline Member
    Join Date
    May 2010
    Posts
    3
    Rep Power
    0

    Default

    Norm: I was going through other posts that dealt with similar problems as mine and some mentioned JSP so I'm thinking this a method to look at. So I'm trying to use my java program that opens up a Compose window with the Send To: field already filled out but now I want to write my message into the message box and then send it without me having to write and press the send button.
    gCalvin: Im using myspace to do this on.
    Last edited by eyeamchito; 05-29-2010 at 05:40 AM.

  5. #5
    wzq110120 is offline Member
    Join Date
    May 2010
    Location
    china
    Posts
    7
    Rep Power
    0

    Default

    I don't konw what you say

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,607
    Rep Power
    23

    Default

    use my java program that opens up a Compose window with the Send To: field already filled out
    How is your program doing this? Is your java program reading something from a server and displaying it in your java program's window? See gcalvin's note

    JSP is code that runs on a server and generates HTML to be sent back to a user's browser.

  7. #7
    eyeamchito is offline Member
    Join Date
    May 2010
    Posts
    3
    Rep Power
    0

    Default

    I'm using these lines of code
    I have the HTML code and the parse that file and get "myURL"

    String myURL="http://messaging.myspace.com/index.cfm?fuseaction=mail.messageV3&friendID="+fri endsID;

    String[] commandLine2 = { "C:\\Program Files\\Mozilla Firefox\\firefox.exe",myURl };
    Process process = Runtime.getRuntime().exec(commandLine2);

    this opens up a tab in mozilla with the window ready for me to type up my message.

  8. #8
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,607
    Rep Power
    23

    Default

    Was that a question?
    I don't understand where you are now.

Similar Threads

  1. programming website?
    By ragarwal in forum Forum Lobby
    Replies: 11
    Last Post: 12-21-2009, 12:37 PM
  2. Oracle trigger interacting with Java app
    By KentDMc in forum Advanced Java
    Replies: 1
    Last Post: 04-27-2009, 01:49 AM
  3. How to download website (Get all link in website)
    By finalmem in forum Advanced Java
    Replies: 0
    Last Post: 11-12-2008, 08:43 AM
  4. Interacting with the Java Garbage Collector
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-28-2008, 08:04 PM
  5. Interacting with files.
    By apfroggy0408 in forum New To Java
    Replies: 1
    Last Post: 03-19-2008, 06:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •