Introduce tags
<% @ Tiglib uri = "/WEB-INT/runqianreport4.tld" prefix = "report" %>
Then add
<Report: HTML name = "..." Reportfilename = "..." .... /> Enter attribute values, such as print, based on the actual situation.
This introduces the statistical report, followed by the parameter report.
Add
<Report: Param name = ...... Paramfilename = .... /> For example:
<% ........
String Param = "cdytzt =" + cdytzt + "; cdyt =" + cdyt + "; sqrmc =" + sqrmc + "; bcdrstr =" + bcdrstr + "; qinistr = "+ qinistr +"; htidstr = "+ htidstr +
"; Reportcode =" + reportcodeconstants. dangan_cdjl + "; ywslid =" + ywslid + "; fwid =" + fwidstr + "; userid =" + userid + "; sfzdclyzdf =" + sfzdclyzdf + "; cfdy = "+ cfdy;
String reqfile = "/dangan/cxjl. RaQ ";
String mytargetpage = "/soar/commonbiz/report/success. jsp ";
String raqfilename = reportcodeconstants. dangan_rggycdjl; %>
<Report: HTML name = "<% = raqfilename %>" reportfilename = "<% = reqfile %>"
Generateparamform = "no"
Needpagemark = "yes"
Params = "<% = Param %>"
Submit = ""
Saveprintsetup = "yes"
Backandrefresh = "<% = mytargetpage %>"
/> </Div>
Difficulties 2. One of the parameters in the statistical report is not in the parameter report. After the input time condition is queried, the parameter value is lost.
The solution is to add hiddenparams In the parameter report, that is, the implicit parameter. This parameter value is the parameter value of the statistical report.