File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Only a type can be imported. mypackage.StringManipulation resolves to a package Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Only a type can be imported. mypackage.StringManipulation resolves to a package" Watch "Only a type can be imported. mypackage.StringManipulation resolves to a package" New topic
Author

Only a type can be imported. mypackage.StringManipulation resolves to a package

Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105
Hi,

I create simple jsp page under webapps\testjsp\simple.jsp

and then create javaclass like
webapps\testjsp\WEN-INF\classes\testpackage\TestFile.class
webapps\testjsp\WEN-INF\classes\testpackage\TestFile.java

when i run the code, i am getting the follwoing error





Help me.
Thanks in advance.

Wake up! Don't let your smile be snatched away by anybody!
Regards, Eswar
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

WEN-INF? It's WEB-INF.

And why are you still putting Java scriptlets in JSPs? Bad, bad practice.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105
Thanks Bear Bibeault.

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: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Only a type can be imported. mypackage.StringManipulation resolves to a package
 
Similar Threads
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