Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
import { StimulsoftViewer } from 'stimulsoft-viewer-react';
export const App = () => (
<StimulsoftViewer
requestUrl="http://localhost:8080/viewer/react_viewer?a={action}"
action="InitViewer"
properties={{ reportName: 'Dashboards.mrt' }}
height="100vh"
/>
);Handle requests in the Java servlet.public class StiReactViewerActionServlet extends HttpServlet implements StiReactViewerHandler {
protected void processing(HttpServletRequest request, HttpServletResponse response) {
StiWebViewerActionServletHelper.processing(
new StiHttpServletRequest(request, this), new StiHttpServletResponse(response));
}
}<StimulsoftViewer requestUrl properties> — the React component; requestUrl points at the Java action endpoint.StiReactViewerHandler — the servlet processes the viewer's actions and returns the report data.