a. A Servlet Container can host multiple Web Applications. b. A single Web Application may contain multiple contexts. c. A single Web Application can contain only one context. d. Any resources with the 'WEB-INF' directory can be directly accessed by the clients.
i think the answer is a but the answer given is a and d.
please clarify.. [ June 17, 2008: Message edited by: Prince Jain ]
b is correct becuase if the application is used in distributed environment then the application will have multiple context
c is correct if the application is running in single JVM. ..
Originally posted by Jan Sterk:
Aren't you confused with sessions?
Ah well, meantime I found something about it in HF (p.255).
You probably mean that there's one context object per JVM. But they're completly identical, copies of each other, all the time. From the programmer's point of view, there's only one context object. If a servlet in JVM A adds or changes an attribute in the context, then a servlet in JVM B can use that attribute and gets the same new value.
Charles Lyons also states in his book 'Study Companion': one application, one context.
Clearly that's what the question refers to, otherwise it would have used the word 'object'.
Please correct me if I'm wrong about it. These kind of things are hard to check empirical.
Btw, it was me who was confused with sessions There's one session object only, migrating from one JVM to the other..
[ June 18, 2008: Message edited by: Jan Sterk ]
[ June 18, 2008: Message edited by: Jan Sterk ] [ June 18, 2008: Message edited by: Jan Sterk ]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: doubt about constraints of WEB-INF folder