Hi Dustin,

The design goal is to strictly separate component level parameters from
application level ones. This is intentionally done via the
Context#createChildContext() method.

I do see how this can be unintuitive in your context, because you basically
expose only one application via the Servlet adapter and just want to pass
parameters to this application. I think we need to provide a way to
explicitly copy the parameters in the child context. Maybe this should be
the default behavior.

There is an existing RFE that I've just moved to 2.0 RC:

"Allow transmission of parameters from web.xml to applications"
http://restlet.tigris.org/issues/show_bug.cgi?id=602

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com




-----Message d'origine-----
De : Thierry Boileau [mailto:thierry.boil...@noelios.com] 
Envoyé : mercredi 16 décembre 2009 15:54
À : discuss@restlet.tigris.org
Objet : Re: web.xml context-params go missing

Hi Dustin,

do you mind send me a sample application with your configuration?

Best regards,
Thierry Boileau


> I have a Spring loaded RESTlet application using the 2.0M6 version.
>
> My ServerResources used to be able to obtain the context-params from the 
> web.xml using the Context.getParameters() method, but that's no longer 
> the case.  Through my debugger, I can see that the parent of the parent 
> of the getContext() method contains the parameters that I need.  This 
> grandparent Context is an instance of ComponentContext, whereas the 
> others are ChildContext instances.
>
> How do I get access to those Parameters again?
>
> Thank you!
> Dustin
>
> ------------------------------------------------------
>
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24306
10
>
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24308
13

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2433409

Reply via email to