<%@ page import = "java.util.Map" %>

<%
/**
 * Returns texarea control intialized with the value parameter using the following options:
 * <UL>
 * <LI><code>rows</code>: number of rows (default = 3)</LI>
 * <LI><code>cols</code>: number of columns (default = 80)</LI> 
 *</UL>
 * 
 * @author <a href="mailto:morciuch@apache.org">Mark Orciuch</a>
 * @version $Id: TextArea.jsp,v 1.1 2003/06/06 19:42:16 morciuch Exp $
 */

Map parms = (Map) request.getAttribute("parms");          
String rows = (String) parms.get("rows"); rows = rows != null ? rows : "3";
String cols = (String) parms.get("cols"); cols = cols != null ? cols : "80";
%>

<textarea name="<%=request.getAttribute("name")%>" rows="<%=rows%>" cols="<%=cols%>">
<%=request.getAttribute("value")%>
</textarea>
