The Stimulsoft React viewer runs as a front-end component that talks to a Java backend (a Spring Boot controller) through a request URL.

Render the React viewer component.
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));
    }
}

How it works. The React front end renders in the browser and calls the a Spring Boot controller backend for data and actions, splitting UI from server logic.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.