In Web.xml I have defined an initialization parameter,
<servlet>
<servlet-name>IRM</servlet-name>
<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<init-param>
<param-name>myParam</param-name>
<param-value>777</param-value>
</init-param>
</servlet>
I tried to get to it with the following:
@InjectObject("service:tapestry.globals.ServletContext")
public abstract ServletContext getServletContext();
getServletContext().getInitParameter("myParam");
but its always null, what am I missing?
Thanks
Peter
--
Peter Stavrinides
Albourne Partners (Cyprus) Ltd
Tel: +357 22 750652
If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail.