In the JSP file, the entry card is processed:

 Map<String, String> entry = (Map<String, String>)request.getAttribute("currentRep"); 

and further processing of this card.

I want to remove all logic implemented in Java and rewrite it to JS.

For this, I made a separate file:

 <script src="${pageContext.request.contextPath}/js/loadListRC.js" type="text/javascript"></script> 

How do I pass entry to loadListRC.js ?
In theory, I read what the controller needs to do and then transmit the JSON data.

Can you show for my case how it should look like?

    0