Choosing an Injection Method
If you are uncertain which procedure to use to inject the agent into your web pages, follow these guidelines in the given order:
- If you cannot use automatic injection, and you can edit the source code of your web application, use one of the kinds of assisted injection. See Assisted Injection-Using Attribute Injection.
Manual injection is supported on all platforms and frameworks. To set up a manually injected page:
If you are using a Java or .NET app agent on the server-side, and your application is running in an environment that supports any of the following:
- Apache Jasper JSP compiler (for Java) or
- ASP.NET or ASPX (for .NET) or
- ASP.NET Core (for .NET; Windows support only)
Assisted injection is available in two variants. In both cases, some of the work is done manually by you and some of the work is done by the server-side Java or .NET app agent.
Assisted injection is currently not supported for .NET Core.
Assisted Injection Using Injection Rules (Java Only)
For detailed information on using this form of assisted injection, see Assisted Injection.
Assisted Injection Using Attribute Injection
In this type of assisted injection, you copy small code snippets appropriate to your framework into your page templates or other code that creates your pages. This snippet contains the two variables
JS_FOOTER, which the app agent replaces with the appropriate information in the response object at runtime.
For detailed information on using this form of assisted injection, see Using Attribute Injection.
If you are using Nginx or Apache as a web container or as a reverse proxy in front of your web container, you can use directives to inject the agent into the response object. See Injection Using Nginx or Injection Using Apache.