It is an instance variable and it is being set once in the init method of the servlet which will be called only once when the servlet is loaded and later on I am using it to do the forwards in the service methods(doGet etc..,).Is it safe to do something like that.
I am wondering what spec says about it and API doesn�t say that RequestDispatcher returned by servletContext is not Thread Safe. I am using Tomcat and hence can know whether I can do it or not by looking in to the RequestDispatcher implementation. But that makes my code vendor specific and didn�t want to do something like it.
I am using at as read only inside the Service Methods by assigning it once in the init Method.