Build the extjs4.1 environment and build extjs4.1
1. Create a test. jsp file to display the css style file.
<C: set var = "contextPath" value = "$ {pageContext. request. contextPath}"> </c: set> set the project path
<Link rel = "stylesheet" type = "text/css" href = "$ {contextPath}/extjs/resources/css/ext-all.css"/>
2. Introduce an important js file. select one of the four files.
<Script type = "text/javascript" charset = "UTF-8" src = "$ {contextPath}/extjs/ext-all-debug.js"/>
<Script type = "text/javascript" charset = "UTF-8" src = "$ {contextPath}/extjs/ext-all-dev.js"/>
<Script type = "text/javascript" charset = "UTF-8" src = "$ {contextPath}/extjs/bootstrap. js"/>
<Script type = "text/javascript" charset = "UTF-8" src = "$ {contextPath}/extjs/ext-all.js"/>
3. introduce international js
<Script type = "text/javascript" charset = "UTF-8" src = "$ {contextPath}/extjs/ext-lang-zh_CN.js"/>
4. Introduce your own js
<Script type = "text/javascript" charset = "UTF-8" src = "$ {contextPath}/js/test. js"/>
Note that if springmvc is used, you need to configure the resource file ing.
<Mvc: resources location = "/extjs/" mapping = "/extjs/**"/>
<Mvc: resources location = "/js/" mapping = "/js/**"/>
<Mvc: resources location = "/jsp/" mapping = "/jsp/**"/>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><c:set var="contextPath" value="${pageContext.request.contextPath}"></c:set>