Overview: Basic knowledge is still weak Ah, today in the project is a little do not remember, or write down in case of it
<%@ page import= "Java.io.IOException"%>
<%--
Created by IntelliJ.
User:administrator
Date:15-1-19
Time: 11:31
To change this template use File | Settings | File Templates.
--%>
<%@ page contenttype= "Text/html;charset=utf-8" language= "java"%>
<%
String header = (string) request.getattribute ("Mpheader");
String id = (string) request.getattribute ("id");
if (Header.indexof ("Micromessenger") ==-1) {//Determine if it is a browser
try {
Response.sendredirect ("mp_ajax_vcf.html?id=" +id);//If it is an asynchronous jump, if it is not then execute the next
} catch (IOException e) {
E.printstacktrace (); To change body of catch statement use File | Settings | File Templates.
}
}
%>
<title> Contacts </title>
<meta name= "viewport" content= "width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0, User-scalable=no ">
<body style= "Background:url (<%=request.getcontextpath ()%>/images/weixintype.jpg) Top right no-repeat Rgba ( 0,0,0,.8); background-size:290px; ">
//<%=request.getcontextpath ()%> get the project root directory
</body>
This article is from the "Small blog" blog, be sure to keep this source http://9686567.blog.51cto.com/9676567/1605928
Familiar with the Java code in the next JSP