About HTML5 the same HTML code as the JSP page does not show the same page effect

Source: Internet
Author: User

1 Private voidWs_newmessagereceived (websocketsession session, String value)2    {3dictionary<string, string> res = login (value, session, This) as Dictionary<string, string>;4        Switch(res["Send"])5        {6             Case"0":7Res. Remove ("Send");8Send (RES);//Send all9                 Break;Ten             Case"1": OneRes. Remove ("Send"); AString username = res["to"]; -websocketsession keys = userlist. Where (q = = Q.value = = username). Select (q =Q.key). First (); -SendTo (keys, res);//for Send the                 Break; -}

HTML5 the default declaration is

[HTML]View Plaincopy print?
    1. <! DOCTYPE HTML>

The JSP default declaration header is

[HTML]View Plaincopy print?
    1. <%@ page contenttype="Text/html;charset=utf-8" language="java"%>
    2. <html>

Here is not the same, if the two pages to write the same HTML code and style, the JSP page display will be different from the HTML5 page, then as long as the JSP page declaration to change the following can be

[HTML]View Plaincopy print?
      1. <%@ page contenttype="Text/html;charset=utf-8" language="java"%>
      2. <! DOCTYPE HTML>

About HTML5 the same HTML code as the JSP page does not show the same page effect

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.