Re: validate from a Java program: how to send CSS and receive results

I know I’m replying to a very old thread, but I stumbled on the same issue so thought I’d mention the solution for anyone that finds this thread by googling (like I did). You just need to use enctype="multipart/form-data" and the issue is magically solved. :)

Lea Verou
W3C developer relations
http://w3.org/people/all#leahttp://lea.verou.me ✿ @leaverou




Eric <info@terwiel.com> wrote on Tue, 5 Jan 2010 11:54:29 +0100
> I try to incorporate a validation in a Java program of mine: a CSS file is
> read and sent over the net to the validator. I then expect results back.
> Below is a piece of the code.
> I use examples from SUN, concerning sending/receiving  over an
> URLConnection.
> 
>  
> 
> I get an error 500 back from the server, along with the error message:
> 
>  
> 
> Servlet has thrown exception:java.lang.IllegalStateException: Reader used
> 
>  
> 
> What do I do wrong and how can I correct it ?
> 

Received on Monday, 15 April 2013 18:31:33 UTC