This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP" Watch "JSP" New topic
Author

JSP

Avinash Nethi
Greenhorn

Joined: Aug 28, 2008
Posts: 7
Im Using String operation(charAt())in JSP Program in tomcat 5.5.20 version
Which String Package i have to import(Please give me the Answer)

iam getting an error


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: 14 in the jsp file: /WEB-INF/classes/first.jsp
Generated servlet error:
Syntax error on token ")", delete this token


org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 14 in the jsp file: /WEB-INF/classes/first.jsp
Generated servlet error:
Syntax error on token ")", delete this token


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 823

Hello and welcome to JavaRanch.

You don't need to import any class or package to do this.
Post your code so that the problem could be figured out..please.

And make sure the title that you give to your new topic is relevant.

Thank you.



[ December 10, 2008: Message edited by: Sudipto Shekhar ]

Regards, Sud.
SCJP 5 ScjpFAQ JLS
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Using a title of "JSP" in a forum completely dedicated to questions on JSP isn't very helpful.

Please go back and change your post to add a more meaningful subject by clicking the .


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: JSP
 
Similar Threads
org.apache.jasper.JasperException: Unable to load class for JSP exception while navigating to jsp
Exception thrown org.jboss.util.NestedSQLException
setting title in web.xml
problem in custom tag library
JSP unable to find the class file