Tag: web technology
Questions Related to web technology
-
Use the method 'HttpServletRequest.getParameterNames()' which will return an enumeration of parameter names.
-
Use the method 'HttpServletResponse.getParameterNames()' which will return an enumeration of parameter names.
-
Use the method 'HttpServletRequest.getAllParameters()' which will return an enumeration of parameter names.
-
There is no direct support in the Servlet API to retrieve the name of all the parameters sent by the client.
-
The value of the 'test' variable will be 2.
-
The value of the 'test' variable will be 0.
-
The value of the 'test' variable will be 1.
-
The variable 'test' must be declared at global scope, else a run-time error will occur
-
out.println(config.getServletContext().getParameter("app-name")); out.println(config.getInitParameter("app-name"));
-
out.println(config.getInitParameter("app-name")); out.println(config.getServletContext().getInitParameter("app-name"));
-
out.println(config.getServletContext().getInitParameter("app-name")); out.println(config.getInitParameter("app-name"));
-
out.println(config.getServletContext().getInitParameter("app-name")); out.println(config.getParameter("app-name"));
-
${request.getAttribute()}
-
${request.attribute}
-
${pageContext.request.getAttribute()}
-
${pageContext.request.attribute}
-
Front Controller
-
Business Controller
-
Business Delegate
-
Intercepting Filter
-
Use the method 'HttpServletRequest.getParameterNames()' which will return an enumeration of parameter names.
-
Use the method 'HttpServletResponse.getParameterNames()' which will return an enumeration of parameter names.
-
Use the method 'HttpServletRequest.getAllParameters()' which will return an enumeration of parameter names.
-
There is no direct support in the Servlet API to retrieve the name of all the parameters sent by the client.
-
${request.getAttribute()}
-
${request.attribute}
-
${pageContext.request.getAttribute()}
-
${pageContext.request.attribute}
-
The value of the 'test' variable will be 2.
-
The value of the 'test' variable will be 0.
-
The value of the 'test' variable will be 1.
-
The variable 'test' must be declared at global scope, else a run-time error will occur
-
The Servlet will output 'javabeat null' in the Server Console.
-
The Servlet will fail to load as the init param property 'no-name' is not mentioned in the deployment descriptor
-
A NullPointerException will be raised as calling getServletConfig() in the init() method will return a null reference.
-
The Servlet will output 'javabeat ' in the Server Console.