Results 1 to 8 of 8
Thread: Interacting with a website
- 05-28-2010, 10:54 PM #1
Member
- Join Date
- May 2010
- Posts
- 3
- Rep Power
- 0
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.
- 05-29-2010, 02:26 AM #2
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?
- 05-29-2010, 03:49 AM #3
Senior Member
- Join Date
- Mar 2010
- Posts
- 953
- Rep Power
- 4
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-
- 05-29-2010, 05:36 AM #4
Member
- Join Date
- May 2010
- Posts
- 3
- Rep Power
- 0
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.
- 05-29-2010, 12:43 PM #5
Member
- Join Date
- May 2010
- Location
- china
- Posts
- 7
- Rep Power
- 0
I don't konw what you say
- 05-29-2010, 03:04 PM #6
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 noteuse my java program that opens up a Compose window with the Send To: field already filled out
JSP is code that runs on a server and generates HTML to be sent back to a user's browser.
- 05-29-2010, 10:22 PM #7
Member
- Join Date
- May 2010
- Posts
- 3
- Rep Power
- 0
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.
- 05-29-2010, 11:00 PM #8
Similar Threads
-
programming website?
By ragarwal in forum Forum LobbyReplies: 11Last Post: 12-21-2009, 12:37 PM -
Oracle trigger interacting with Java app
By KentDMc in forum Advanced JavaReplies: 1Last Post: 04-27-2009, 01:49 AM -
How to download website (Get all link in website)
By finalmem in forum Advanced JavaReplies: 0Last Post: 11-12-2008, 08:43 AM -
Interacting with the Java Garbage Collector
By Java Tip in forum Java TipReplies: 0Last Post: 03-28-2008, 08:04 PM -
Interacting with files.
By apfroggy0408 in forum New To JavaReplies: 1Last Post: 03-19-2008, 06:14 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks