Index: [Article Count Order] [Thread]

Date: Fri, 7 Jun 2002 13:15:12 +0200
From: Radek Hnilica <Radek@Hnilica.CZ>
Subject: [webricken:107] Re: how to get query in Servlet
To: webricken@notwork.org
Message-Id: <20020607111512.GH5704@hnilica.cz>
In-Reply-To: <20020607091915.GF5704@hnilica.cz>
References: <20020607091915.GF5704@hnilica.cz>
X-Mail-Count: 00107

ok I find it.

> class HelloServlet < WEBrick::HTTPServlet::AbstractServlet

+	def HelloServlet.require_path_info?
+	    false
+    	end

>     def do_GET(req, res)
> 	res['Content-Type'] = "text/html"
> 	res.body << "<HTML>Hello!<P>#{show_req(req)}</HTML>"
>     end
> 

now http://kvark:2001/hello.app?b=2  ->  query_string 'b=2'

-- 
Radek Hnilica <Radek at Hnilica dot CZ>
=======================================
No matter how far down the wrong road you've gone, turn back.
						Turkish proverb