Versions Compared

Key

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

...

  1. The method edu.mit.mortar.controller.action.GlobalEntryAction.execute is called and a session is created and the following session attributes are set:
    1. GlobalKeys.SAP_SYSTEM_ID
    2. GlobalKeys.WAS_SYSTEM_ID
    3. GlobalKeys.WAS_HOST
    4. GlobalKeys.USER_HOME
  2. Your action (which has been configured to chain after /EntryAction) is called which immediately calls the method IDDAction.execute which sets the following session attributes:
    1. GlobalKeys.CERT
    2. GlobalKeys.USERNAME
    3. GlobalKeys.KERBID
  3. At the end of IDDAction, SAPBaseAction.doProcess is called which opens a connection to SAP.
  4. At the end of SAPBaseAction, your action's method doAction is called within a MessageRuntimeException try catch.
  5. If your action's method doAction calls a SAP RFC, SAPServiceSupport.execute is called.
  6. If an error message is returned from the SAP RFC at this point, processing will stop and the user will either stay on the same page displaying the error message if an action input has been defined with the current jsp correctly in the struts-config or they will be sent to the GlobalKeys.FAIL jsp page with a MessageRuntimeException unless your action intercepts the MessageRuntimeException and handles it. BAPI Exceptions . In the rare case that you don't want to stop processing and display the error message you should wrap your service call in a try...catch statement intercepting any MessageRuntimeException messages.
    BAPIExceptions will be sent to the GlobalKeys.FAIL jsp page.

...