<%
String path = Request.getcontextpath ();
String basepath = request.getscheme () + "://"
+ request.getservername () + ":" + request.getserverport ()
+ path + "/";
%>
Request.getscheme ();//Can return the protocol used by the current page, that is, "http"
Request.getservername ();//Can return the name of the server on which the current page is located, in fact, is the general localhost, if it is really deployed on the server that is the server's address
request.getserverport;//returns the port used by the server on which the current page is located, typically port 80, (8080 for your own machine test)
request.getcontextpath;//returns the path to the application where the current page resides.
These four assembled together, is the current application of the following path.
<a href= "<%=basepath%>/luck/initluck" target= "blank" style= "height:56px" > "width=" 161px "height=" 56px ">
What is the specific meaning of the basepath path in the Java code that is written by default in JSP?