Download Using NetBeans™ IDE 5.5
Transcript
Using NetBeansTM 5.5 IDE Running Web Application Tasks 92 To perform this task Follow these steps Set request parameters for JSP files. 1. In the Projects or Files window, navigate to the project's JSP file. 2. Right-click the JSP file and choose Properties. 3. Type the necessary parameters in the Request Parameters property field in the URL_query_string format. Set execution URIs and parameters for servlets. 1. Select the servlet in the Projects or Files window. 2. Choose Tools > Set Servlet Execution URI in the main menu. 3. Type the execution URI and parameters. 4. Click OK. Note that you can only set a request URI for a servlet if it has servlet mappings in the deployment descriptor (web.xml file). The default URI is defined in the deployment descriptor. Set the runtime classpath. In the Projects window, right-click the Libraries node and choose Add Project, Add Library, or Add JAR/Folder, to add the necessary item to the project's classpath. Note that by default, the project's runtime classpath contains the project's compiled sources and everything on the compilation classpath. Set the web server. 1. In the Projects window, right-click the project node and choose Properties. 2. Select the Run node in the Categories pane. 3. Select the web server from the Server dropdown. Chapter 8 Quick Reference