在正常注册界面点击提交之后就会出现这样的错误是什么问题?
HTTP Status 500 - Unable to compile class for JSP:
type Exception report
message Unable to compile class for JSP:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 28 in the jsp file: /out.jsp
Type mismatch: cannot convert from String[] to String
25:
request鍐呯疆瀵硅薄
26: 鐢ㄦ埛鍚嶏細
27: 鐖卞ソ锛�
28: String favorites=request.getParameterValues("favorite");
29: for( int i=0;i
30: out.println(favorites[i]+" ");
31: }
An error occurred at line: 30 in the jsp file: /out.jsp
The type of the expression must be an array type but it resolved to String
27: 鐖卞ソ锛�
28: String favorites=request.getParameterValues("favorite");
29: for( int i=0;i
30: out.println(favorites[i]+" ");
31: }
32: %>
33: