Adding web files to a Rational Rhapsody model

You can add your own HTML, image, multimedia, or script files to the IBM® Rational® Rhapsody® web server file system from within the Rational Rhapsody application.

Procedure

To upload the files to the web server:

  1. In the browser of a working Rational Rhapsody model, navigate to Components > <Component Name> > Files.
  2. Right-click the Files category.
  3. Select Add New File. Type the name of the new file.
  4. In the browser, right-click the file and select Features. Set the following controls:
    • Name. Type in the name of your HTML file.
    • Path. Type in, or browse to, the file you want to upload to the web server.
    • File Type. Set to Other.
  5. Select the Properties tab.
  6. Set the WebComponents::File::WebManaged File property to Checked.
  7. Click OK.
  8. Generate the code. Code generation converts the file to a binary format, and embeds it into the executable file generated by Rational Rhapsody.

Results

You can view web files you have added to your model by going to the following URL:

http://<ip_address>/<filename>

Feedback