W3C home > Mailing lists > Public > www-validator-css@w3.org > March 2008

Re: Issue with servlet:

From: Olivier Thereaux <ot@w3.org>
Date: Wed, 5 Mar 2008 20:55:46 -0500
To: "Chong, Kenn Min" <kmchong@gomez.com>
Cc: www-validator-css@w3.org
Message-ID: <20080306015546.GA21985@w3.mag.keio.ac.jp>


On Wed, Mar 05, 2008, Chong, Kenn Min wrote:
> Hi there!
>             I've setup the org.w3c.css.servlet.CssValidator.class as a
> servlet in Jetty properly. 


>             HttpClient client = new HttpClient();     
>             PostMethod post = new
> PostMethod("");
>             post.setParameter("text", str);
>             System.out.println(client.executeMethod(post));
> I always get this:
> 500
> <h2>Target: No file</h2>
> Indicating that the validator thinks I'm trying to validate with a file
> versus a blob of text. What am I doing wrong??

Are you using the last release or the CVS version. I seem to recall I
fixed a similar problem not too long ago, whereby POSTing content would
make the validator imply that you were POSTing a file, not direct input.

We're about to release the CVS code (tomorrow or friday if all goes
well), but if you don't want to wait feel free to get the dev code and
build the jar from it:

Received on Thursday, 6 March 2008 01:55:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:01:01 UTC