Hello.

I am trying to change a context property for the unit
test of a Servel. First, I wrote next code:


ServletContextWrapper context = (ServletContextWrapper
) config.getServletContext();
context.setInitParameter ("dataconexion",
"tralalala");

However, when initiating my Servlet with:

myServlet.init (config);

The property was unchanged. Looking at the code of
AbstractServletConfigWrapper I have found that it
return a new copy of the context when calling
getServletContext(), so my change is not stored in the
configuration.

is there any way to change a property of the context ?
How can I do it?

Thank you very much.



                
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to