Index: [Article Count Order] [Thread]

Date: Wed, 09 Nov 2005 17:12:34 -0500
From: Steve Appling <sajakarta@mindspring.com>
Subject: [webricken:160] Re: webrick and CGI module
To: webricken@notwork.org
Message-Id: <43727452.9060508@mindspring.com>
In-Reply-To: <20051109214720.GI13402@f00f.net>
References: <4372450D.3030702@mindspring.com> <20051109214720.GI13402@f00f.net>
X-Mail-Count: 00160

I would appreciate it if you could send it to me.  I am trying to do 
something very light weight and don't really want to add a big 
framework.  I think I could meet my needs with a few simple servlets if 
I could forward requests on to the ".rhtml" page that is served up by 
the ERBHandler.

Do you have any idea if it is possible to make use of the CGI module 
(without actually calling into ruby via CGI)?

Derek Lewis wrote:

>I've actually done some work on some extensions to webrick that implement       
>filters and request forwarding/including (similarly to java servlets).  The code
>is far from ready for prime-time, and has some bugs in it I have yet to work    
>out.                                                                            
>In addition, to get the hooks into webrick in the places I need, I had to       
>copy-paste some webrick methods and override them, with small changes to add    
>hooks, so my code isn't very future-proof when it comes to webrick updates.     
>That said, if you're still interested, I would be happy to mail you the code.   
>
>On Wed, Nov 09, 2005 at 01:50:53PM -0500, Steve Appling wrote:
>  
>
>>I'm new to Ruby, so apologies in advance if these are silly questions. 
>>I'll also issue the disclaimer that this was cross-posted to the 
>>ruby-talk list, but I haven't had any responses there.
>>
>>I'm working on a very small web application running under webrick (not 
>>as CGI).  I would like to make use of the wealth of web related helpers 
>>in the CGI module (such as session management and multipart/form-data 
>>handling), but don't know how to get this to work inside a webrick 
>>servlet.  Is this possible?  Are there other web helper modules that can 
>>do similar tasks inside a servlet?
>>
>>Lastly, is there a way to implement any type of filters or a request 
>>forwarding mechanism within webrick?
>>
>>    
>>
>
>  
>