Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 8260 invoked from network); 4 May 2003 17:34:10 -0000 Received: from nan-smtp-02.noos.net (HELO smtp.noos.fr) (212.198.2.71) by daedalus.apache.org with SMTP; 4 May 2003 17:34:10 -0000 Received: (qmail 10734565 invoked by uid 0); 4 May 2003 17:34:13 -0000 Received: from unknown (HELO vma) ([195.132.244.64]) (envelope-sender ) by 212.198.2.71 (qmail-ldap-1.03) with SMTP for ; 4 May 2003 17:34:13 -0000 From: "Vincent Massol" To: "'Cactus Users List'" Cc: "'Karr, David'" Subject: RE: Servlet "init-param" elements not seen in test, apparently in ServletRedirector instead Date: Sun, 4 May 2003 19:33:46 +0200 Message-ID: <003001c31263$568c8da0$2502a8c0@vma> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Yep. Or you can define the init-parameters for the ServletRedirector entry in web.xml. The setInitParameter() is probably better though. -Vincent > -----Original Message----- > From: eric.hodge@jpmorgan.com [mailto:eric.hodge@jpmorgan.com] > Sent: 01 May 2003 22:07 > To: cactus-user@jakarta.apache.org > Cc: cactus-user@jakarta.apache.org > Subject: Re: Servlet "init-param" elements not seen in test, apparently in > ServletRedirector instead > > > In your ServletTestCase's setUp method, do this: > > protected void setUp() throws Exception { > config.setInitParameter("name", "value"); > } > > > > > > > > I have an app with a "web.xml" that specifies "init-param" elements for > specific servlets. While running normally in Tomcat, this works fine. > When I test the app in Cactus, however, it doesn't appear to find the > init params for the servlet. I tried printing out all the init params > in the servlet, and by seeing what it printed out, it appears that while > executing my servlet, it is actually getting the init params for the > ServletRedirector servlet, instead of for my own servlet. Is there a > simple solution to this? > > I appear to be using Cactus 1.4.1. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > > > > > This communication is for informational purposes only. It is not intended > as > an offer or solicitation for the purchase or sale of any financial > instrument > or as an official confirmation of any transaction. All market prices, data > and other information are not warranted as to completeness or accuracy and > are subject to change without notice. Any comments or statements made > herein > do not necessarily reflect those of J.P. Morgan Chase & Co., its > subsidiaries and affiliates. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: cactus-user-help@jakarta.apache.org