Accessing context param's in GWT RPC Servlets?

2009-08-03 Thread Joshua Lambert
Hi, I have some basic information stored in our web.xml, primarily config related settings like database connection information. I would ideally like to read this in during the constructor of the RemoteServiceServlet, however I am generating exceptions when I try to do so. (I am using getInitPa

Re: Accessing context param's in GWT RPC Servlets?

2009-08-03 Thread Kamal Chandana Mettananda
Hi, You must not use the constructor, try using the init(ServletConfig) method of a Servlet when you are trying to access init params. ServletConfig.getInitParameter(String); BR, Kamal --- http://lkamal.blogspot.com On Tue, Aug 4, 2009 at 3:33 AM, Joshua L

Re: Accessing context param's in GWT RPC Servlets?

2009-08-03 Thread Joshua Lambert
Thanks, I was using that in my HttpServlet based servlets but did not realize that the GWT RPC servlets also called this. On Aug 3, 10:28 pm, Kamal Chandana Mettananda wrote: > Hi, > > You must not use the constructor, try using the init(ServletConfig) method > of a Servlet when you are trying t