JSP

作者: AaronJiang9527 | 来源:发表于2018-11-15 04:10 被阅读0次

    JSP代码模板

    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 
    <% 
        String path = request.getContextPath(); 
        String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
    %> 
    <!DOCTYPE html>
    <html> 
        <head> 
            <base href="<%=basePath%>"> 
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
            <title>Insert title here</title> 
        </head> 
        <body> 
            
        </body> 
    </html>
    

    相关文章

      网友评论

          本文标题:JSP

          本文链接:https://www.haomeiwen.com/subject/ukkefqtx.html