tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Afkham Azeez <afk...@gmail.com>
Subject Re: Embedded Tomcat - programatically adding context-params
Date Tue, 15 Jun 2010 15:10:14 GMT
Sorted this out.

You need to set the params after the context is added to the host. I was
setting it before adding it to the host.

Thanks
Azeez

On Tue, Jun 15, 2010 at 8:07 PM, Afkham Azeez <afkham@gmail.com> wrote:

> Hi folks,
> We are using Embedded Tomcat in our products. Once we create a new context,
> we need to set some context parameters. How can this be done?
>
> I've tried using org.apache.catalina.Context#addParameter, but from within
> a JSP, when I try to access this parameter as
> application.getInitParameter("name) I'm getting null.
>
> Thanks
> Azeez
>



-- 
Afkham Azeez
Senior Software Architect & Product Manager, WSO2 WSAS; WSO2, Inc.;
http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
email: azeez@wso2.com cell: +94 77 3320919
blog: http://blog.afkham.org
twitter: http://twitter.com/afkham_azeez
linked-in: http://lk.linkedin.com/in/afkhamazeez

Lean . Enterprise . Middleware

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message