Home > Back-end >  The JSP or servlet HTML js
The JSP or servlet HTML js

Time:10-19

A JSP or servlet + HTML, js are there in the HTML code, is the point of others in their system for a button, I'll give him an interface, the button will callback interface, I gave him at the same time will give me a parameter, and then I'm going to receive his parameters, at the same time with access to the js code, but I don't want to jump to the JSP or HTML page, also want to stay on their pages

CodePudding user response:

And my js to get the current browser url, for example is to my page, your browser's address is http://kaapple.com:8080/zjf/a.jsp, my JSP or HTML in js for this url to ZJF by, if I don't want to let them to jump into my page, I still can't take my browser's url of the page

CodePudding user response:

And I also want to get to my page browser url but didn't want him to jump in the past, now still can not take

CodePudding user response:

Send an asynchronous request ajax

CodePudding user response:

Several servers, a few pages, you are responsible for interface?

Your interface will not generate page, there is no chance to run js, the typical implementation is the get method pass parameters to your interface, your interface returns json data, completely is a server-side solution,
The URL you want to get each other, just talk to each other, request sent to you, didn't have a chance to get myself

CodePudding user response:

Ajax know about the
  • Related