<%@ page language="java" import="java.util.*,com.unis.vo.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:useBean id="error" scope="request" class="java.lang.String"></jsp:useBean>
<jsp:useBean id="provinceList" scope="request" class="java.util.ArrayList"></jsp:useBean>
<jsp:useBean id="cityList" scope="request" class="java.util.ArrayList"></jsp:useBean>
<jsp:useBean id="hobbyList" scope="request" class="java.util.ArrayList"></jsp:useBean>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'useradd.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body >
<font color="red">${error }</font>
<form action="servlet/UserAdd" name="userAddForm" method="post">
<c:forEarch items="${provinceList}" var="i">
${i.prvinceName}
</c:forEarch>
</form>
</body>
</html>
用JSTL的<c:forEarch>循环输出provincelist的属性值,错误代码500,求解