[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[ews.eclipse.technology.rap] Getting Context Parameter from ServletContext

Hi,

I am using tomcat to deploy my .war file. Everything works, but I cannot access a context parameter from my web.xml.

I try to get it with:

(String) RWT.getSessionStore().getHttpSession().getServletContext().getAttribute("PROVIDER_URL");

in my web.xml I specified:
<context-param>
 <param-name>PROVIDER_URL</param-name>
 <param-value>jnp://anotherurl</param-value>
</context-param>

Unfortunetly, when I debug (inspect) the ServletContextAdapter "RWT.getSessionStore().getHttpSession().getServletContext()", I can access under

ServletContextAdapter
|-->servletContext
  |-->context(ApplicationContext)
     |-->context(StandardContext)
        |-->parameters

exactly what I defined.

But using getAttribute("PROVIDER_URL") gives me null.

What is the problem with this?


Thanks for your help.

Martin