Results 1 to 14 of 14
Thread: how to fill a field online?
- 07-12-2015, 03:14 PM #1
Member
- Join Date
- Dec 2013
- Posts
- 28
- Rep Power
- 0
- 07-12-2015, 03:53 PM #2
Re: how to fill a field online?
Here are two approaches:
1) Use the Robot class to drive the cursor and keyboard to do what a user would do when looking at a browser's window.
2) Send HTTP request to the server, read the html page, build a response page and send it to the server.If you don't understand my response, don't ignore it, ask a question.
- 07-12-2015, 04:02 PM #3
Member
- Join Date
- Dec 2013
- Posts
- 28
- Rep Power
- 0
Re: how to fill a field online?
tnx. will you give me a sample code?
- 07-12-2015, 04:15 PM #4
Re: how to fill a field online?
Sorry, I don't give out code.
If you don't understand my response, don't ignore it, ask a question.
- 07-12-2015, 04:23 PM #5
Member
- Join Date
- Dec 2013
- Posts
- 28
- Rep Power
- 0
Re: how to fill a field online?
al least give me refreance.i'm amator in network programing
what should i serach about it?Last edited by M0TRIX; 07-12-2015 at 04:26 PM.
- 07-12-2015, 04:33 PM #6
Re: how to fill a field online?
For solution 2) I suggest studying the HTTP protocol and HTML.
If you don't understand my response, don't ignore it, ask a question.
- 07-12-2015, 04:42 PM #7
Member
- Join Date
- Dec 2013
- Posts
- 28
- Rep Power
- 0
Re: how to fill a field online?
which one is esay and fast?
- 07-12-2015, 04:47 PM #8
Re: how to fill a field online?
Neither.
If you don't understand my response, don't ignore it, ask a question.
- 07-12-2015, 05:03 PM #9
Member
- Join Date
- Dec 2013
- Posts
- 28
- Rep Power
- 0
Re: how to fill a field online?
any one can put a sample code?
- 07-12-2015, 05:07 PM #10
Re: how to fill a field online?
Check out Google. I'm sure it can find lots of sample code.
If you don't understand my response, don't ignore it, ask a question.
- 07-12-2015, 05:12 PM #11
Member
- Join Date
- Dec 2013
- Posts
- 28
- Rep Power
- 0
Re: how to fill a field online?
the problem is i don't know what to google exactly
- 07-12-2015, 05:23 PM #12
Re: how to fill a field online?
I don't either. The project is in java and involves networking use of HTTP and HTML. Start with those.
You will need to try different search values to see what they return and refine the search args as you learn more about what is returned.If you don't understand my response, don't ignore it, ask a question.
- 07-13-2015, 05:15 AM #13
Member
- Join Date
- Jul 2015
- Posts
- 1
- Rep Power
- 0
Re: how to fill a field online?
It sounds like Jaunt - Java Web Scraping & Automation may be really useful to you then. It makes it very easy to accomplish what you want to do, and they provide example code on their site.
- 07-13-2015, 10:43 AM #14
Re: how to fill a field online?
Wouldn't it be much easier to find out how the POST is made from the webpage? Use Fiddler2 to see the POST data and rebuild that with your WebClient. Getting a HttpClient (Thank you Apache HttpComponents!) to do that POST for you would probably be the correct way. Screen scraping is frowned upon by most sites. Besides, one little HTML change and you're screwed. Ofcourse, when they change the parameters for the login, you run into problems as well. But that's price you pay for using a "service" you're not supposed to use that way.
"It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013
Similar Threads
-
fill out an online survey via java
By Android_Newbie22 in forum New To JavaReplies: 2Last Post: 11-21-2011, 12:00 AM -
front end display of field description when clicking the field name
By neils in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 10-29-2010, 11:47 AM -
Help with bcc field and cc field in java code
By eel in forum NetworkingReplies: 1Last Post: 10-25-2010, 12:20 PM -
how from an Access Currency field I populate a hidden field
By lse123 in forum Java ServletReplies: 4Last Post: 01-17-2010, 11:13 PM -
Is there a way to have mySQL auto fill in the current date into my dateCreated field?
By Md Saim in forum JDBCReplies: 12Last Post: 04-18-2009, 12:58 AM
Bookmarks