一个简单的JSP网页程序,运行了以后说有错误,是什么原因??
<% @ page contentType = "text/html; charset = GB2312" % > <HTML> <BODY BGCOLOR = yellow><FONT Size = 3> <P>这是一个简单的JSP页面 < % int i,sum = 0; for(i = 1; i<=100;i++){ if(i % 2 ==0) sum = sum +i; } %> <P>1到100的偶数之和是:< % = sum %> </FONT></BODY></HTML>
追问:The server encountered an internal error () that prevented it from fulfilling this request.把500内部服务去掉,再看什么意思?怎么去掉?我是新手,刚刚开始学JSP~<% @ page contentType = "text/html; charset = GB2312" % > 这行删掉。contentType 语法错误