Building and Running the AjaxList Application with
Ant
- Open a terminal prompt and navigate to swdp.tutorial.home/examples/phobos/AjaxList.
- Type ant and press Enter.
This will build and package the AjaxList.war web application.
- Type ant deploy and press Enter.
This will deploy AjaxList.war to Application Server 9.1.
- In a web browser navigate to:
http://server:server-port/AjaxList/
You can enter a value in the list, click the button, and see it added to the list. To remove an item from the list, click it.
- To undeploy the application, navigate to swdp.tutorial.home/examples/phobos/AjaxList and run ant undeploy.
- To delete the built application, navigate to swdp.tutorial.home/examples/phobos/AjaxList and run ant clean.
Building and Running the bioFisheye Application
This section describes how to build and run the bioFisheye Phobos web application.
Building and Running the bioFisheye Application in NetBeans IDE 5.5.1
- Select File→Open Project in NetBeans IDE 5.5.1.
- Navigate to swdp.tutorial.home/examples/phobos, select bioFisheye, and click Open Project Folder.
- Right-click the bioFisheye application in the
Projects pane and select Run Project.
This will build a WAR file of the application, deploy it onto your server and run it in your browser. Click one of the hyperlinks on the page. One will take you to the page that uses the fish eye widget. The other will take you to the page that uses the combobox widget.
On the fisheye page, click an icon on the fish eye to see biographical information for the engineer pictured in the icon. You will see a dialog that says glue.js: fisheye event. Click OK in the dialog.
On the combobox page, select an engineer's name from the combobox to see biographical information for the engineer.
Building and Running the bioFisheye Application with
Ant
- Open a terminal prompt and navigate to swdp.tutorial.home/examples/phobos/bioFisheye.
- Type ant and press Enter.
This will build and package the bioFisheye.war web application.
- Type ant deploy and press Enter.
This will deploy bioFisheye.war to Application Server 9.1.
- In a web browser navigate to:
http://server:server-port/bioFisheye/
Click one of the hyperlinks on the page. One will take you to the page that uses the fish eye widget. The other will take you to the page that uses the combobox widget.
On the fisheye page, click an icon on the fish eye to see biographical information for the engineer pictured in the icon. You will see a dialog that says glue.js: fisheye event. Click OK in the dialog.
On the combobox page, select an engineer's name from the combobox to see biographical information for the engineer.
- To undeploy the application, navigate to swdp.tutorial.home/examples/phobos/bioFisheye and run ant undeploy.
- To delete the built application, navigate to swdp.tutorial.home/examples/phobos/bioFisheye and run ant clean.
Building and Running the Calculator Application
This section tells you how to build and run the Calculator application using NetBeans IDE 5.5.1 and the Ant build tool. Developing the Calculator Phobos Application Using the NetBeans IDE gives you step-by-step instructions on how to develop the Calculator application.
Building and Running the Calculator Application in NetBeans IDE 5.5.1
- Select File→Open Project in NetBeans IDE 5.5.1.
- Navigate to swdp.tutorial.home/examples/phobos, select Calculator, and click Open Project Folder.
- Right-click the Calculator application in the
Projects pane and select Run Project.
This will spawn a Phobos runtime process, on which the application will run. It will also launch the application in your web browser. At that point, you can enter values into the two text fields, choose an operation, and click the button to perform the calculation.
- To stop the application, right-click the Calculator application in the Projects pane and select Stop Phobos Runtime.
- If you want to create a WAR file of the application so that you can deploy it onto your web server or application server, right-click the AjaxList application in the Projects pane and select Export as Web Archive (WAR).
Building and Running the Calculator Application with
Ant
- Open a terminal prompt and navigate to swdp.tutorial.home/examples/phobos/Calculator.
- Type ant and press Enter.
This will build and package the Calculator.war web application.
- Type ant deploy and press Enter.
This will deploy Calculator.war to Application Server 9.1.
- In a web browser navigate to:
http://server:server-port/Calculator/
This will spawn a Phobos runtime process, on which the application will run. It will also launch the application in your web browser. At that point, you can enter values into the two text fields, choose an operation, and click the button to perform the calculation.
- To undeploy the application, navigate to swdp.tutorial.home/examples/phobos/Calculator and run ant undeploy.
- To delete the built application, navigate to swdp.tutorial.home/examples/phobos/Calculator and run ant clean.