About Question enthuware.jwpv6.2.797 :
Moderator: admin
-
- Posts: 13
- Joined: Sun Jan 20, 2013 5:58 am
- Contact:
About Question enthuware.jwpv6.2.797 :
Option 1 seems to be incorrect, but it is shown as correct in ETS. Please, explain how is it possible?
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.797 :
The specification is not very clear on this point. It is possible to use the same class name in two listner elements, for example:
However, it is not clear from the specification whether the container should create only one instance or two instances in this case.
Code: Select all
<listener>
<description>ServletContextListener</description>
<display-name>name 1</display-name>
<listener-class>com.enthuware.jwebplus.MyWebListener</listener-class>
</listener>
<listener>
<description> HttpSessionListener</description>
<listener-class>com.enthuware.jwebplus.MyWebListener</listener-class>
<display-name>name 2</display-name>
</listener>
Who is online
Users browsing this forum: No registered users and 2 guests