Hi,
When can you call the ServletContext?
- Can you call it in each method as long as you import the servlet classes.
- Can you only call it in a doGet, doPost, init, ...
- If you call it in another method than doGet, doPost,..., should these methods (doGet,..) be in the class or doesn't it matter?
I have a problem with reading this in , in a servlet in which I don't have a doPost, doGet,...,
while it works for other servlets wher I retrieve the ServeltContext in the doGet, doPost,...
Thanks for any info,
Tijs
When can you call the ServletContext?
- Can you call it in each method as long as you import the servlet classes.
- Can you only call it in a doGet, doPost, init, ...
- If you call it in another method than doGet, doPost,..., should these methods (doGet,..) be in the class or doesn't it matter?
I have a problem with reading this in , in a servlet in which I don't have a doPost, doGet,...,
while it works for other servlets wher I retrieve the ServeltContext in the doGet, doPost,...
Thanks for any info,
Tijs