calling a tag from servlet service method

can anybody help me, i need to call jsp tag from a servlet , i was just going through, it seems like i have to provide implementation for pagecontext object and it may be different for different server implementation. is there any other way . or i have to provide implementation for the pagecontext class

[311 byte] By [feroz_psa] at [2007-10-3 1:18:58]
# 1
please its needed urgently
feroz_psa at 2007-7-14 18:16:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Nops you need to instantiate the tag object and call the life cycle methods on it - doStart(), doEnd() etc (look at the jsp documentation). But a big warning - tags are container managed objects - instantiating them and calling the attribute setter() methods as well as the life cycle methods may lead to several difficult to debug problems in your application.

ram.

Madathil_Prasada at 2007-7-14 18:16:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Why not extract the functionality that you need in the servlet into a seperate class that can be instatianted and called for both the tag and the servlet.
tolmanka at 2007-7-14 18:16:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...