About Question enthuware.jwpv6.2.603 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ETS User

About Question enthuware.jwpv6.2.603 :

Post by ETS User »

None of the answers is correct.

Despite the fact that API description says that @WebInitParam annotation can be used on Servlet and Filter classes to define init parameter this is not correct.

Servlet 3.0 Specification
8.1.3 @WebInitParam
This annotation is used to specify any init parameters that must be passed to the
Servlet or the Filter. It is an attribute of the WebServlet and WebFilter
annotation.
@WebInitParam can be used only as parameter to @WebServlet and @WebFilter annotations:

Code: Select all

@WebServlet(urlPatterns="/AuthenticationServlet", initParams=@WebInitParam(name="test", value="testVal"))
public class AuthenticationServlet extends HttpServlet {}
I have made some test on Tomcat 7.0.22 and Glassfish 3.1.1 and if you use @WebInitParam outside @WebServlet annotation it is just ignored.

admin
Site Admin
Posts: 10386
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.603 :

Post by admin »

You are right. This has been fixed.

thanks for your feedback!

Guest

Re: About Question enthuware.jwpv6.2.603 :

Post by Guest »

After clicking evaluate, the solution "None of these" is not marked with the green color.

admin
Site Admin
Posts: 10386
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.603 :

Post by admin »

This has been fixed. Thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 7 guests