File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
Only a type can be imported. mypackage.StringManipulation resolves to a package
Joined: May 02, 2010
Dec 30, 2010 11:33:35
I create simple jsp page under
and then create javaclass like
when i run the code, i am getting the follwoing error
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 6 in the generated java file Only a type can be imported. mypackage.StringManipulation resolves to a package Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439) org.apache.jasper.compiler.Compiler.compile(Compiler.java:349) org.apache.jasper.compiler.Compiler.compile(Compiler.java:327) org.apache.jasper.compiler.Compiler.compile(Compiler.java:314) ... ... ...
Thanks in advance.
Wake up! Don't let your smile be snatched away by anybody!
Author and ninkuma
Joined: Jan 10, 2002
Dec 30, 2010 11:38:39
WEN-INF? It's WEB-INF.
And why are you still putting Java scriptlets in JSPs? Bad, bad practice.
Books by Bear
Joined: May 02, 2010
Dec 30, 2010 12:09:56
Thats my carless mistake during my folder creation. Just now i saw the folder name.
Ok. after change the name, its worked for me
I agree. Here's the link:
- it saves me about five hours per week
subject: Only a type can be imported. mypackage.StringManipulation resolves to a package
Insert new records in database without deleting existing records
unable to compile class for JSP
JSP import error
Unable to compile class for JSP
Problem loading the class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013