Grazie un casino per l'aiuto.

Allora, se ho inteso bene, devo fare un post sui form user e password, giusto?
qui:
codice:
ps.print("NOMECAMPOUTENTE=abcd&NOMECAMPOPASSWORD=10341");
devo mettere l'id dei due tag <input> rispettivamente al posto di NOMECAMPOUTENTE e NOMECAMPOPASSWORD, con relativo user e psswd. E' corretto?

dando un'occhiata al sorgente della pagina pare che il bottone di login punti all'indirzzo relativo /servlet/community. Ho provato a inserire queste info nel codice che mi hai proposto

codice:
import java.io.*;
import java.net.*;
 
class urltest{
        public static void main(String[] args){
                try     {       
URL url = new URL( "http://www.fantaclub.it/servlet/community" );         
HttpURLConnection hConnection = (HttpURLConnection)                              
url.openConnection();      
HttpURLConnection.setFollowRedirects( true );         
hConnection.setDoOutput( true );       
hConnection.setRequestMethod("POST");           
PrintStream ps = new PrintStream( hConnection.getOutputStream() );      
ps.print("nick=Paolez&pwdutente=XXXX");       
ps.close();         
hConnection.connect();        
 if( HttpURLConnection.HTTP_OK == hConnection.getResponseCode() )       {     
//stampo la risposta su un file html, tanto per vedere che succede.
// NEL TUO CASO DOVRESTI NUOVAMENTE FARE UN HTTPURLCONNECTION
//STAVOLTA ALLA PAGINA DEI VOTI
    InputStream is = hConnection.getInputStream();        
OutputStream os = new FileOutputStream("output.html");        
 int data;         
while((data=is.read()) != -1)         {           
os.write(data);         }         
is.close();         
os.close();         
hConnection.disconnect();       
}     
}     catch(Exception ex)     
{       ex.printStackTrace();     }
 
        }
}

l'ho testato ma non funge. Ho usato ideone, un compilatore online, perchè sono in ufficio, quindi forse il problema dipende da quello, anche se dall'eccezione che sputa fuori non pare esser colpa di questo. La posto qui:

java.security.AccessControlException: access denied (java.lang.RuntimePermission setFactory)
at java.security.AccessControlContext.checkPermission (AccessControlContext.java:323)
at java.security.AccessController.checkPermission(Acc essController.java:546)
at java.lang.SecurityManager.checkPermission(Security Manager.java:532)
at java.lang.SecurityManager.checkSetFactory(Security Manager.java:1612)
at java.net.HttpURLConnection.setFollowRedirects(Http URLConnection.java:249)
at urltest.main(Main.java:10)

pare che proprio mi dia accesso negato

qualche idea? dove sbaglio?