In the following scenario, you will change the source code of the JSP quickCarRentalView.jsp, rebuild the Web application, and deploy it so you can start debugging.
|
The Software Deployment Manager (SDM) must be launched before deploying the Web application. |
|
You have the car rental project opened in SAP NetWeaver Developer Studio |
...
1. Open the source code of the JSP QuickCarRentalView.jsp: In the J2EE Explorer, double-click J2EE_QuickCarRentalWeb → Web content → quickCarRentalView.jsp
2. Display the source code and navigate to the line at which the reservations are output in tabular form (at the end of the JSP).
|
|
3. Change the (HTML) statements (till the end of the file).
|
|
Use the following code:
|
4. Save the change by choosing the appropriate icon in the toolbar.
5. Choose Project -> Rebuild All from the menu.
6. Create an EAR file.
In the J2EE Explorer, right-click the node J2EE_QuickCarRentalEar and choose Build EAR File from the context menu.
7. Deploy the EAR file.
In the J2EE Explorer, right-click the node J2EE_QuickCarRentalEar → J2EE_QuickCarRentalEar.ear and choose Deploy to J2EE engine from the context menu.
|
|
8. After the successful deployment start the Web application using the corresponding URL:
http://localhost:50000/QuickCarRental
The change has no effect on the application itself. However, the replacement of the HTML statements with the Java codes enables you to improve the debugging of the JSP page in the next step.