Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
svn+ssh://svn.mit.edu/csf-playground/notes-proto/trunk

The code is not standard - it was generated by MyEclipse for Spring, and uses JTA/JPA and a third-party DAO superclass.

The demo app is not deployed on an app server.

Screenshots

Assuming the app is running locally, the URL for the demo page would be something like:

...

Here is the new Note field, resulting in a click on "Add Note":

Miscellanea

  1. The app should deploy locally either on OC4J or Tomcat 7.
  2. You will need to set your dev database username and  password in notes-proto-dao.properties.
  3. Once deployed and running locally, the web interface is (PORT is 8080 or 8888 depending on which app server you use):
    1. http://localhost:PORT/notes-proto/ - this is the CRUD interface for maintaining the data
    2. http://localhost:PORT/notes-proto/index.html - this is the client side, a simple HTML page that uses AJAX to talk to the REST interface.
    3. http://localhost:PORT/notes-proto/Note/10 - an example of a direct call to the REST interface, for testing. This example retrieves note 10 in JSON form.
  4. To work around cross-domain issues in the browser, the REST controller is coded to allow cookies and to allow execution from any domain via these response headers:
    Access-Control-Allow-Credentials: true
    *Access-Control-Allow-Origin: **