Familiar with the Java code in the next JSP

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.