javascript – Forward servlet response to React js
I have a complex requirement where I need to implement react js in a servlet jsp application.
The entire application developed in servlet jsp. I need to replace a particular functionality with React js.
Current functionality:
Click the link in a JSP page. It makes a servlet call and returns list of data that will be displayed in a table in the new JSP page.
New Requirement:
Click the link in a JSP page. It makes a servlet call and returns a json response, which needs to be consumed by React JS.
My concern is that the servlet can’t be a standalone service as it requires parameters coming from JSP request and fetch the details based on the request parameters and return json.
How do I achieve this as this seems to be complex?
The reason I want to implement react js is to have modern datatable features.
Read more here: Source link