cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

How to capture data return by method which is defined in JSP page?

nitin_dumbre
Guide

We have an JSP page which have a method which are returning some information which we want to capture and later on want use in business transaction:

like ..

<%!
private static String getData(String para_1, String para_2, String para_3) {
  String value = null;

  // data processing to get data in expected format

return value;
}
%>


How to get the method return value ?


1 REPLY 1

Joe_Hoffman
Dynatrace Leader
Dynatrace Leader

Did you look at defining a rule to capture the Return value of that method? You'll have to be creative in defining the class as the JSPs classname likely changes each compile.

If it's not possible to define the JSP class, perhaps you can define a base class, or find that same parameter in another place in the architecture, possibly even passing the parameter to a dummy Class.Method just to expose it to DT. Such as com.foo.Dynatrace.JspParam1(string);