---
title: "spring表单标签"
author: "Roger111"
date: "2012-06-20T23:23:26Z"
tags: []
categories: ["Web前端"]
slug: "spring"
draft: false
lastmod: "2012-06-20T23:23:26Z"
id: 1565219
url: "https://rogerming.iteye.com/blog/1565219"
---

```
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
```

 tomcat在解析jsp时，会在TldLocationCache类中，通过JarScanner对WEB-INF/lib下进行扫描，获取springmvc.jar中的META-INF/spring-form.tld，并加入到映射中。这样就可以解析spring标签了。