title: The type java.lang.CharSequence cannot be resolved. TomCat
body: <p>Hi Guys I'm not new to java web edition. I have a websystem which my login page (index.jsp) runs fine. When a login is successful that's where the problem comes, i get this error.</p>
  
  <pre><code>org.apache.jasper.JasperException: Unable to compile class for JSP: 
  
  An error occurred at line: 12 in the jsp file: /MSS_portal_frameset.jsp
  The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
  9:         StringBuffer result = new StringBuffer();
  10:     
  11:         while ((e = str.indexOf(pattern, s)) &gt;= 0) {
  12:             result.append(str.substring(s, e));
  13:             result.append(replace);
  14:             s = e+pattern.length();
  15:         }
  
  Stacktrace:
  org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
  org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
  org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
  org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  </code></pre>
  
  <p>That section of the code is inside scriptlets &lt;% %>.</p>