- From: Chong, Kenn Min <kmchong@gomez.com>
- Date: Wed, 5 Mar 2008 12:13:58 -0500
- To: <www-validator-css@w3.org>
- Message-ID: <193F7BB9141C404791BB94EE4672B15804230811@ENTDC1MS01.corp.gomez.com>
Hi there! I've setup the org.w3c.css.servlet.CssValidator.class as a servlet in Jetty properly. Then when I try to feed in the following text: ..scw { PADDING-RIGHT: 1px; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; VERTICAL-ALIGN: middle; PADDING-TOP: 1px } IFRAME.scw { Z-INDEX: 1; LEFT: 0px; VISIBILITY: hidden; WIDTH: 1px; POSITION: absolute; TOP: 0px; HEIGHT: 1px } TABLE.scw { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; Z-INDEX: 2; LEFT: 0px; VISIBILITY: hidden; PADDING-BOTTOM: 0px; WIDTH: 200px; CURSOR: default; PADDING-TOP: 0px; POSITION: absolute; TOP: 0px; TEXT-ALIGN: center } through java: HttpClient client = new HttpClient(); PostMethod post = new PostMethod("http://10.0.2.249:9093/validate"); post.setParameter("text", str); System.out.println(client.executeMethod(post)); (where str contains the CSS text above) I always get this: 500 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'> <head> <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" /> <title>CSS Validator : Error</title> <link type="text/css" rel='stylesheet' href='http://jigsaw.w3.org/css-validator/style/error.css' /> </head> <body> <div> <a href="http://www.w3.org/"><img src="http://www.w3.org/Icons/w3c_home" alt="w3c" /></a> </div> <hr /> <div class="t1">CSS</div> <div class="t2">Validator</div> <div class="t3">Error</div> <h2>Target: No file</h2> <div class="error"> <p>I/O Error: You have sent an invalid request. </p></div> <hr /> <p><img src='images/mwcss.gif' alt='made with CSS' /></p> <address><a href='Email.html'>www-validator-css</a></address> </body></html> Indicating that the validator thinks I'm trying to validate with a file versus a blob of text. What am I doing wrong??
Attachments
- image/gif attachment: image001.gif
Received on Thursday, 6 March 2008 01:36:07 UTC