| 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
|
|
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
|
 |
 |
|
|
subject: Only a type can be imported. mypackage.StringManipulation resolves to a package
|
|
|