• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Eswar Nec
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WEN-INF? It's WEB-INF.

And why are you still putting Java scriptlets in JSPs? Bad, bad practice.
 
Eswar Nec
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!