{"id":20987874,"url":"https://github.com/jenspapenhagen/react-include-jsp-example","last_synced_at":"2026-05-08T00:33:07.475Z","repository":{"id":249676934,"uuid":"832214715","full_name":"jenspapenhagen/react-include-jsp-example","owner":"jenspapenhagen","description":"example for react app included into existing JSP APP","archived":false,"fork":false,"pushed_at":"2024-12-02T16:32:12.000Z","size":306,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T11:35:07.558Z","etag":null,"topics":["docker-compose","jakarta","jakarta-ee","jakartaee","jsp","jstl","react","tomcat","tomcat10"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jenspapenhagen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-22T14:51:09.000Z","updated_at":"2024-12-02T16:32:16.000Z","dependencies_parsed_at":"2024-12-02T17:40:53.555Z","dependency_job_id":null,"html_url":"https://github.com/jenspapenhagen/react-include-jsp-example","commit_stats":null,"previous_names":["jenspapenhagen/react-include-jsp-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jenspapenhagen/react-include-jsp-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenspapenhagen%2Freact-include-jsp-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenspapenhagen%2Freact-include-jsp-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenspapenhagen%2Freact-include-jsp-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenspapenhagen%2Freact-include-jsp-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenspapenhagen","download_url":"https://codeload.github.com/jenspapenhagen/react-include-jsp-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenspapenhagen%2Freact-include-jsp-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265810388,"owners_count":23831951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-compose","jakarta","jakarta-ee","jakartaee","jsp","jstl","react","tomcat","tomcat10"],"created_at":"2024-11-19T06:18:25.253Z","updated_at":"2026-05-08T00:33:02.433Z","avatar_url":"https://github.com/jenspapenhagen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Include React App into existing JSP App #\r\n\r\n\u003e [!WARNING]\r\n\u003e this is only an example Project\r\n\r\nWe use am simple [Apache Tomcat 10](https://tomcat.apache.org/) App,\r\ninside a Docker Compose Setup\r\nthe folder \"app\" is mounted into the right postion of the Tomcat.\r\nthe web.xml is only for this example.\r\n\r\n\u003e [!TIP]\r\n\u003e under \"app/WEB-INF/lib\" we need to install [JSTL](https://projects.eclipse.org/projects/ee4j.jstl) by download the [spec](https://mvnrepository.com/artifact/jakarta.servlet.jsp.jstl/jakarta.servlet.jsp.jstl-api/3.0.0)\r\n an the [impl](https://mvnrepository.com/artifact/org.glassfish.web/jakarta.servlet.jsp.jstl/3.0.1)\r\n\r\n## Buidling the React App with Vite ##\r\n\r\nOverview: [Vite Guide](https://vitejs.dev/guide/) \\\r\nbetter use with TypeScript\r\n\r\nthis example react app is under \"react-app\"\r\nto build the react app we use npm. Other tools like yarn are fine, too.\r\n\r\n```shell\r\nnpm install\r\nnpm run build\r\n```\r\n\r\nunder \"react-app\\dist\\\" we will find an \"index.html\" and the linked CSS and JS file on the subfolder \"assets\" copy all this into the \"existing\" JSP App.\r\n\r\nCopy the linking of the CSS and JS file into the needed jsp file.\r\nThan copy the HTML Snipped:\r\n\r\n```HTML\r\n\u003cdiv id=\"weather-icon\"\u003e\u003c/div\u003e\r\n```\r\n\r\non the right place.\r\n\r\nnow we can start the tomcat 10.1.26\r\n\r\n```shell\r\ndocker-compose up -d\r\n```\r\n\r\nNow we can check the example JSP jakarta tomcat app with included react component with full hook support.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenspapenhagen%2Freact-include-jsp-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenspapenhagen%2Freact-include-jsp-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenspapenhagen%2Freact-include-jsp-example/lists"}