Re: Connect to Web interface to process data
- From: Andrew Thompson <SeeMySites@xxxxxxxxxxx>
- Date: Fri, 29 Jul 2005 10:54:48 GMT
On Fri, 29 Jul 2005 09:10:05 GMT, Sharp Tool wrote:
> "Ingo R. Homann" <ihomann_spam@xxxxxx> wrote in message
>> Sharp Tool wrote:
>>> I would like to use Java to connect to a Web page.
>>> This Web page contains a button, which when clicked opens a dialog box
> where
>>> you can point to a file for processing.
>>> Can someone give me a rough idea (in small steps) how I can do this in
> Java?
>>> It would be appreciated.
>>
>> That depends on what the button does. Is it a normal FORM-Button? Or
>> does it use JavaScript?
>>
>> Try to find out, what HTTP-Request(s) your Browser sends to the server.
>> Then, it's not difficult to emulate it using the java.net.URL class.
...
> I'm not sure, but looking at the source code of the Web page (link:
> http://bioinfo.cis.nctu.edu.tw/service/gprm/) it seems to be Javascript,
That JS is unnecessary to the form iteslf - it merely
adds pop-up tips and a 'clear' button. The form is
functional without it (as far as I can tell)
You could reproduce it in anything from pure HTML to a
JWS Swing GUI, all you need to do is make a form/GUI
that looks like that. The values are the same as the
textual labels.
Then, once you have your information, append it to an
URL and make a POST to the target and you are there.
Of course, all this will be much easier in consultation with
the *author* of the page, who's email is clearly listed there.
What does the author have to add to this?
>..but I'm not 100% certain. If its Javascript, ..
It is. Or rather, it is a smattering of JS to add 'extra bits'
to an otherwise fully functional HTML form element.
>..what do I need to do?
Learn how to program (or how to write HTML).
--
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
LOADING....
.
- References:
- Re: Connect to Web interface to process data
- From: Sharp Tool
- Re: Connect to Web interface to process data
- Prev by Date: New (as in days) to Java - question about "super()" method
- Next by Date: integration between struts and servlet auth
- Previous by thread: Re: Connect to Web interface to process data
- Next by thread: java unit test
- Index(es):