Using JRun 3.0 SP2a.  The servlet aliases, set up via JMC, run just fine
through standard HTTP request.

I'm not as familiar with CFHTTP (learned CF after doing Java) - and have not
been able to use it effectively to call JRun.  Do you have a code sample in
that area?

Thanks,
Toby

> Date: Mon, 14 May 2001 00:18:33 -0400
> From: "Scott Stirling" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: passing INIT parameters to servlet with CFSERVLET?
> Message-ID: <000c01c0dc2c$f0e512b0$44f06041@stirlingw2k>
> 
> Right, CFSERVLET just sends a JRun-proxy-protocol request to JRun.  You have
> no control over the servlet engine.  The params set in a CFSERVLET are
> request parameters and nothing more.  CF is in essence a Web client to JRun,
> the only difference being that CF knows the direct protocol to talk directly
> to JRun and bypass HTTP.  But you can also just do a CFHTTP call to JRun and
> achieve similar results as CFSERVLET.
> 
> To affect init params in a servlet, you must get into the servlet engine and
> set them either via the JMC or by editing the web.xml for the Web
> application in which your servlet resides.  Are you using JRun 2.3.3 or JRun
> 3.0?  Do your servlet aliases work when not going through CFSERVLET, such as
> when doing just a regular HTTP request?
> 
> Scott Stirling
> 
>> -----Original Message-----
>> From: Toby Davis [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, May 08, 2001 6:29 PM
>> To: JRun-Talk
>> Subject: passing INIT parameters to servlet with CFSERVLET?
>> 
>> 
>> background: using CF Enterprise 4.5.1 and JRUN 3.0 SP 2a
>> 
>> Right now, I have ColdFusion invoking a servlet from its space, and
>> CFSERVLET runs fine for those servlets not requiring init
>> parameters (basic HelloWorld type servlets).
>> 
>> However - is it possible to pass initParameters to a servlet from Cold
>> Fusion using CFSERVLET?   CFSERVLETPARAM does NOT pass init
>> parameters, it only passes values to the HttpServletRequest
>> object AFTER initialization.
>> 
>> My servlet is designed to take values in its init() method which are
>> required to allow the servlet to run properly.
>> 
>> Side note:  In JRun, I had created servlet aliases which are
>> designed to explicitly pass the init parameters needed, yet
>> CFSERVLET cannot invoke the named aliases, only the base
>> servlet class minus init parameters.
>> 
>> Thanks,
>> Toby

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to