---
title: "关于jstl问题Static attribute must be a String literal"
author: "simon_zhang"
date: "2009-12-15T16:59:02Z"
tags: []
categories: ["编程语言"]
slug: "jstl-static-attribute-must-be-a-string-literal"
draft: false
lastmod: "2010-11-30T11:28:12Z"
id: 549072
url: "https://mogee.iteye.com/blog/549072"
---

关于jstl “Static attribute must be a String literal, its illegal to specify an expression.”问题解决方案

导致的原因是因为引入的

&lt;%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %&gt;

改为：

&lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt;

 

或者有可能你的工程中有多个不同的版本