• Post Reply Bookmark Topic Watch Topic
  • New Topic

import problem  RSS feed

 
amir thakur
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
heloo..

Recently i am working with Custom Tags that is in JSP....
but the Question is when iam importing the package my compiler always shows an error
that
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

does not eixst....
so whats the basic problem is and whats the solution...for it
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you including the JSP API jar file in your compilation classpath?
 
amir thakur
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes all my JAVA API are included in my class path....

also it looks so starnage that my all other application related to servlet and other things for example.
util,io,servlet all are working fine..
but in this case its simpliy saying that javax.servlet.jsp.tagext.*;
is not there so were is the problem...
please help me out......
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
amir thakur wrote:yes all my JAVA API are included in my class path....

No, it's not. If it were, you would not be getting this error. Check again.
 
amir thakur
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this the problem then how my other programs run...
that is servlet and all..
when iam using
javax.servlet.*;

then there will be no error the program is compiled and run without any error

but when iam using

javax.servlet.jsp.tagext.*;

then only i got this problem....

do reply....
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlets API and JSP API are in different jars. Just because you have correctly included one, does not mean you have included the other.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!