For details, see Section 2.5. Downloading the Software
Bookmarking the Servlet and JSP APIsYou can access the APIs online; you can also download them to your machine for faster access. Servlets 2.3 and JSP 1.2
Servlets 2.4 and JSP 2.0
Configuring the ServerRun the installation wizard and specify the following:
After completing the installation, go to the Start menu, select Programs, select Macromedia JRun 4, and choose JRun Launcher. Select the admin server and press Start. Next, open a browser and enter the URL http://localhost:8000/ . Log in with the username and password you specified during installation, then select Services under the default server in the left-hand pane. Next, choose WebService, change the port from 8100 to 80, press Apply, and stop and restart the server. Setting Up Your Development Environment
Using the Default Web ApplicationThe main location is install_dir /servers/default/default-ear/default-war . Packageless Servlets
Packaged Servlets
Packaged Beans and Utility Classes
JAR Files
HTML and JSP Pages (Not In Subdirectories)
HTML and JSP Pages (In Subdirectories)
Using Custom Web ApplicationsCreate a Web application directory in install_dir /servers/default . The directory should have a WEB-INF subdirectory, a web.xml file in WEB-INF (copy the one from the default Web application), and a WEB-INF/classes subdirectory. Instead of a regular directory, you can also use a WAR file (JAR file with file extension renamed from .jar to .war ) with this structure. In the following, we use webappName to refer to the name of the directory (or the base name of the WAR file, minus . war ). See Section 2.11 for details. Packageless Servlets
Packaged Servlets
Packaged Beans and Utility Classes
JAR Files
HTML and JSP Pages (Not In Subdirectories)
HTML and JSP Pages (In Subdirectories)
Viewing Autogenerated Code for JSP PagesYou can view the servlet code that JRun generates from your JSP pages. However, JRun does not save the .java files unless you change the keepGenerated element from false to true in install_dir /servers/default/SERVER-INF/default-web.xml .
|