There is a web page from which I want to retrieve a certain string. In order to do so, I need to login, click some buttons, fill a text box, click another button - and then the
Take a look at the apache HttpClient project, or if you need to run Javascript on the page, try HttpUnit.