How do i convert this scriplet to java servlet

this code work fine in jsp but how can i get the same output from this line using java servletwhat should i need to do ?please any one cal help me ServletContext scon=pageContext.getServletContext();
[227 byte] By [Salahuddina] at [2007-10-2 7:31:04]
# 1
in your servlet you can simply do:getServletContext()
pgeuensa at 2007-7-16 21:10:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Dear pgeuens thank you very muhu know i was just in this place
Salahuddina at 2007-7-16 21:10:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...