JSP introduces the rundry report

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.