idea maven项目配置相关问题

来源:互联网 发布:编写linux脚本执行命令 编辑:程序博客网 时间:2024/05/21 05:41

1 新建jsp页面需要引入相关的标签

<%@ page language="java" contentType="text/html; charset=UTF-8"         pageEncoding="UTF-8"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

2 新建的xml文件的版本不支持使用el表达式
两种解决方式 :
(1)使用<%@ page isELIgnored =”false” %>标签
(2)替换web.xml的配置版本

<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">  <display-name>apptestjquery</display-name>  <welcome-file-list>    <welcome-file>index.jsp</welcome-file>  </welcome-file-list></web-app>
原创粉丝点击