Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about the servletcontext

Status
Not open for further replies.

TyzA

Programmer
Jan 7, 2002
86
BE
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top