try putting the actual server's name that the servlet is running on,
instead of localhost

>                         URL url = new 
>URL("http://localhost:8000/main?"+URLEncoder.encode("opcao")+
>                                                 
>"="+URLEncoder.encode(opcao)+"&"+URLEncoder.encode("param")+
>                                                 "="+URLEncoder.encode(param));
>                 URLConnection con = url.openConnection();
>                 con.setDoOutput( true );
>         con.setDoInput( true );
>         con.setUseCaches( false );
>         con.setDefaultUseCaches(false);
>                 InputStream in = con.getInputStream();
>                 ObjectInputStream objStream;
>                 objStream = new ObjectInputStream(in);
>                 obj = (Object)objStream.readObject();
>                 objStream.close();
>                 in.close();
>
>                 }catch(IOException o){o.printStackTrace();}
>                 catch(ClassNotFoundException c){c.printStackTrace();}
>
>
>                 return obj;
>         }
>
> (I return an object some that i can use the same function in diferent
> places)
>
> I've looked in the archives and in search engines for this exception, but i
> did not find anything relevant. Some if anyone can help me i would apreciate
> it.
>
> Thanks for you time.
>                                                 Hugo Malheiro
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to