facebook

dynamic access to servlet context from non servlet class

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #241044 Reply

    jlubbis
    Member

    Hi,

    i would like to dynamicly access the servlet context from non servlet class, i mean from common java class, that is executed within web container.

    Sample scenario:
    1. jsp calls java class MyTools.java
    2. MyTools.java want to access servlet context dynamicly.

    I know one solution, that jsp page sends reference to servlet context when calling java class. But IS THERE ANY OTHER WAY HOW TO ACCESS the Servlet Context? E.g. by using InitailContext to retrieve ServletContext?

    Thanx for any hint and advise.

    –Eugen

    #241156 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: dynamic access to servlet context from non servlet class

You must be logged in to post in the forum log in