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


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to