<form:textarea path="path" cols="cols" rows="rows"/>
引數說明:<%@page contentType="text/html" import="java.util.*" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%> <% class NewBean{ private String text="在這裡輸入文字";//定義一個字串 public void setText(String text){ //生成get和set方法 this.text=text; } public String getText(){ return text; } } NewBean fanBean = new NewBean(); request.setAttribute("command",fanBean); %> <form:form> 請輸入你對本站的看法:<br> <form:textarea path="text" cols="20" rows="8"/> <!--定義一個文字域--> </form:form>