Excerpt | ||
---|---|---|
| ||
JAR Libraries |
The two MIT custom created/maintained JARs are:
- mortar
- sap2java
Occasionally problems are found within the code associated with one of these JARs and it must be replaced. This is often done by simply deleting the jar from your applications WebContent/WEB-INF/lib folder and copying the corrected jar from the dist folder of either mortar or sap2java and placing it into your project's WebContent/WEB-INF/lib folder.
...
mortar
Mortar contains common code needed by our SAP web apps. All of your actions should be subclasses of SAPBaseAction whose code you can access via Open Declaration -> Attach Source... First check out the version of mortar used by your application via SVN mortar -> tags -> version of interest.
Then navigate to SAPBaseAction via Open Declaration and attach the source:
In the Source Attachment Configuration window click on the Workspace... button. Select the src directory within the mortar project you checked out above.
(see attach source).
A number of useful session attributes are set via mortar. Your actions can access these session attributes with the following code:
...
Mortar 4.10 and above also handles search help which means search help can be implemented on any web page via using the tag library searchhelp.tld without any additional code. See the Search Help section on the Development Framework page.
Mortar also handles all the SAP connections and, in particular, any RFC error messages.
sap2java
see See sap2java under tools . for a definition of what it is. See FAQ for how to use it to generate proxies.