日期:2014-05-18  浏览次数:20691 次

eclipse struts jsp编译出错,网上没见有答案!!!
我遇到个这样的问题,网上找遍了也没有解释,郁闷中...那位高手不吝赐教
我用的是tomcat5.5+eclipse3.1+struts1.2.9+mysql+mysql-connector-java-3.1.6-bin.jar
login.jsp
<%@ page contentType="text/html;charset=GB2312" language="java" %>

<html>
<head>
  <title>the simple login example</title>
</head>
<body>
<form action="login.do" method="post">
用户名:<INPUT type="text" name="userName" size="19"><BR>
密 码:<INPUT type="password" name="password" size="20"><BR><BR> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;<INPUT type="submit" value="提交">
<INPUT type="reset" value="重置">
</form>

</body>
</html>
=========================================================================
报错:
package org.apache.jsp.pages.chapterThree;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class login_jsp extends org.apache.jasper.runtime.HttpJspBase
  implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
  return _jspx_dependants;
  }

  public void _jspInit() {
  _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
  throws java.io.IOException, ServletException {

  PageContext pageContext = null;
  HttpSession session = null;
  ServletContext application = null;
  ServletConfig config = null;
  JspWriter out = null;
  Object page = this;
  JspWriter _jspx_out = null;
  PageContext _jspx_page_context = null;


  try {
  response.setContentType("text/html;charset=GB2312");
  pageContext = _jspxFactory.getPageContext(this, request, response,
  null, true, 8192, true);
  _jspx_page_context = pageContext;
  application = pageContext.getServletContext();
  config = pageContext.getServletConfig();
  session = pageContext.getSession();
  out = pageContext.getOut();
  _jspx_out = out;

  out.write("\r\n");
  out.write("\r\n");
  out.write("<html>\r\n");
  out.write("<head>\r\n");
  out.write(" <title>the simple login example</title>\r\n");
  out.write("</head>\r\n");
  out.write("<body>\r\n");
  out.write("\t\t<form action=\&q