لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Export JasperReports to HTML

آزاد تازه‌وارد تاییدشده امن

دستورالعمل اجرایی آماده برای انجام دقیق کارهای توسعه وب بدون تکرار پرامپت‌های طولانی. (شامل ۱۱ گام عملی · سازگار با Claude Code).

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: html
description: Export JasperReports to browser-ready HTML, route image and font resources, configure accessible output, and restrict generated hyperlinks. Use when a JasperReports HTML export has missing images, broken resource URLs, unwanted links, or must be embedded in a web application; not for unrelated web-page authoring or general HTML sanitization.
---

# Export JasperReports to HTML

## Establish the delivery contract

Identify the JasperReports and Java versions, the HTML exporter and configuration, whether images should be embedded or served separately, how the application will route resource URLs, which hyperlink schemes and hosts are allowed, and whether accessible HTML is required. Distinguish the generated HTML document from the web server or framework that delivers it.

## Configure HTML and resources

1. Use the version-matched `HtmlExporter`, `SimpleHtmlExporterOutput`, and `SimpleHtmlReportConfiguration` APIs. Keep exporter settings scoped to HTML; do not change fill or pagination behavior globally to solve an HTML-only layout issue.
2. Choose embedded images or external resources deliberately. For external images, set an `HtmlResourceHandler` on the HTML output and implement both `getResourcePath` and `handleResource`. The path returned by the handler must resolve from the served HTML URL, and the application must make the corresponding bytes available at that path. Do not return a local filesystem path as a browser URL.
3. Package report images and fonts with the application or resolve them through a controlled repository. Test the exact deployment class loader and web route. A report image that cannot be resolved during fill is different from an exported image URL that returns 404; diagnose and test both boundaries separately.
4. Configure HTML layout and accessibility options only when required. Inspect the exported page in the target browser because HTML geometry, fonts, and wrapping can differ from PDF or the JasperPrint layout.

## Restrict links and active content

1. Treat report hyperlinks and report-authored markup as untrusted when reports or link values come from outside the application. Apply trusted application policy before serving the output.
2. In JasperReports 7.0.8 and later, `net.sf.jasperreports.export.html.href.filter.enabled` enables the HTML exporter's hyperlink allow-list. Configure one or more `net.sf.jasperreports.export.html.href.allow.pattern.<name>` context properties with Java regular expressions that match the entire resolved URL. Test both a permitted link and a rejected link in the exact export context; when filtering is enabled without an allow pattern, no hyperlink is permitted.
3. The exporter hyperlink filter is not a general HTML sanitizer, does not remove all active content, and does not restrict server-side network access. Do not treat it as protection for arbitrary HTML or as a substitute for application output encoding, URL validation, Content Security Policy, or network controls.

## Validate and deliver

Fill with synthetic data and export using the same resource handler and URL configuration as the application. Verify that every emitted resource URL maps to served bytes, inspect the page in a browser, and test a missing image or 404 policy. Test allowed and disallowed hyperlinks; do not infer safety from the filter setting alone. Record the exact JasperReports and Java versions, test command, browser and observed behavior. Keep image delivery, HTML rendering, hyperlink filtering, and behavioral skill eval results as separate claims.

If browser access or the target delivery route is unavailable, state that resource resolution and rendering remain unverified. Use [images-barcodes](../images-barcodes/SKILL.md) for report-side image expressions and fill failures, [hardening](../hardening/SKILL.md) for broader trust boundaries, and [export](../export/SKILL.md) for general output selection.

## Sources

- [HTML exporter API](https://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/export/HtmlExporter.html)
- [HTML report configuration API](https://jasperreports.sourceforge.net/api/net/sf/jasperreports/export/HtmlReportConfiguration.html)
- [Configuration reference](https://jasperreports.sourceforge.net/config.reference.html)
- [HTML exporter sample](https://jasperreports.sourceforge.net/sample.reference/html/README.html)


— ‹guest · 2026-11-29› —

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
توسعه وب
✦ Pro

Web Application Testing

«Web Application Testing» همان چیزی است که وقتی سر توسعه وب کار می‌کنید کم است: دستیار شما با این مهارت «مدیریت هوشمند …

⚡ /webapp-testing SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
توسعه وب
✦ Pro

Web Artifacts Builder

این مهارت با نام «Web Artifacts Builder» تجربهٔ یک کاربلد در توسعه وب را کنار دستیار شما می‌گذارد؛ کافی است درخواست بده…

⚡ /web-artifacts-builder SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
توسعه وب
✦ Pro

Docs Page Skill

برای کدها، APIها و تغییرات پروژه مستندات تمیز، README کاربردی و گزارش تغییرات (Changelog) قابل فهم می‌نویسد. (شامل ۱۹ گ…

⚡ /docs-page SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۶/۱۰۰ ★ ۱۰۹,۵۹۶
توسعه وب
✦ Pro

Canopy Part Title

قواعد و مراحل استاندارد توسعه وب را به دستیار هوش مصنوعی اضافه می‌کند تا خروجی یکدست بگیرید. (شامل ۱۱ گام عملی · سازگار…

⚡ /canopy-part-title SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۶/۱۰۰ ★ ۹۰,۱۴۸
توسعه وب
✦ Pro

Vercel React Best Practices

در طراحی مسیرهای سرور، فرم‌ها، فرانت‌اند مدرن و ارتباط امن کلاینت و سرور طبق استانداردهای روز کمک می‌کند. (شامل ۷۱ گام …

⚡ /vercel-react-best-practices SKILL.md
MCP
۹۶/۱۰۰ ★ ۵۳,۹۱۶
توسعه وب
✦ Pro

Find Skills

این مهارت با نام «Find Skills» تجربهٔ یک کاربلد در توسعه وب را کنار دستیار شما می‌گذارد؛ کافی است درخواست بدهید تا «توس…

⚡ /find-skills SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۴۰,۵۰۹