-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 17 Apr 2002 03:42, GOTOU Yuuzou wrote:
> Hi,
>
> In message <20020416112754.YRAQ10762.mta1-rme.xtra.co.nz@there>,
>
> `Holden Glova <dsafari@xtra.co.nz>' wrote:
> > I have something wierd going on with this little example. For some odd
> > reason I get a redirect immediately after doing a GET on a resource.
>
> please try to use AbstractServlet::require_path_info.
>
> require 'webrick'
> include WEBrick
>
> class HelloServlet < HTTPServlet::AbstractServlet
> extend ERbMethod
> + require_path_info false
>
> def do_GET(req, res)
> #puts req.query
> name = req.query['name']
> #puts name
Thanks that worked - can you tell me why I need to do this? I had a servlet
mounted in a previous play with WEBrick (about 4 months ago) and I didn't
have to do that.
Thanks for your help.
- --
Signed,
Holden Glova
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8vILT+mF116Lw2cQRAv+TAJ9Z7o28xlhaHfvZWT3GwfTzosFvQACfXhVC
cP2bxwoO2qd51AcF2ojfAs8=
=ehMO
-----END PGP SIGNATURE-----