aspose file tools*
The moose likes Servlets and the fly likes a question from context Listener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "a question from context Listener" Watch "a question from context Listener" New topic
Author

a question from context Listener

sandeep Talari
Ranch Hand

Joined: Dec 24, 2007
Posts: 63
Hello buddy, need clarification about the contextListener

1.when we are going to implement this class(explaination need)?
2.how to convert the string given by Application context to object?
3.context has to be initialized before other parts of application get intialized who will initialize it?
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Originally posted by sandeep Talari:
Hello buddy, need clarification about the contextListener

1.when we are going to implement this class(explaination need)?

Sometime you need some objects to be accessed by through out the scope of application , like the the map which stores the currently logged in user . This map object can be placed in context scope!

Originally posted by sandeep Talari:

2.how to convert the string given by Application context to object?

Do you want to said an object returned by context , then there is no need to convert it , by default its an Object type

Originally posted by sandeep Talari:

3.context has to be initialized before other parts of application get initialized who will initialize it?


Yes , It is initialized before other resources , and container initialized this for you!


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a question from context Listener