Question: PHP, Java 1. When you use NetBeans to create a new servlet, NetBeans does all but one of the following. Which one is it?: A
PHP, Java
1. When you use NetBeans to create a new servlet, NetBeans does all but one of the following. Which one is it?:
A NetBeans provides starting code for the servlet.
B NetBeans lets you provide URL patterns for accessing the servlet.
C NetBeans lets you specify the package that you want the servlet to be in.
D NetBeans lets you change the options for servlet reloading.
2. When you use NetBeans to edit a web.xml file, you can either use the XML tab to edit the XML code manually or you can use
A the Intellisense feature to modify the code
B the Output window to set specific values
C the graphical interface thats provided by one of the six other tabs
D the XML Palette window to add and modify portions of code
3. To deploy a NetBeans application to a remote server, you can copy its WAR file
A from the dist directory of the application to the document root directory of the server
B from the WEB-INF directory of the application to the document root directory of the server
C from the dist directory of the application to the webapps directory of the server
D from the WEB-INF directory of the application to the webapps directory of the server
4. To run an HTML page, JSP, or servlet without running the entire application, you can
A right-click on t`he file in the Projects window and select the Run File command
B select the file in the Projects window and press F6
C double-click on the file in the Projects window
D select the Run File command and then select the file in the Run File dialog box
5. The HTTPServlet Java class is used as a base (inheritance) class for
A Request classes
B GenericServlet classes
C application servlets
D response objects
6. If you use a servlet instead of a JSP,
A the resulting web page wont be generated as rapidly
B its easier to code the HTML for the web page
C its harder to get the parameters from the request object
D you need to execute controller logic in your MVC-based application
7. To define error handling for a JSP, you can use a
A JSP scriptlet
B JSP expression
C JSP directive
D JSP declaration
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
