Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in using taglib in NetBeans

 
Thanuja Vishwanath
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

For pagination iam using pager-taglib.tld.

I have included pager-taglib.jar in lib folder.
and i have included pager-taglib.tld in /WEB-INF/tlds/pager-taglib.tld

and in web.xml



In JSP
i have included



Now i get this error:
PageUrl is already defined in SimplifiedJSPServlet

Iam using Netbeans 6.8 version. I dont find any file called SimplifiedJSPServlet.

I dont have any clue as why it shows this error. Just to test i included other tlds but iam not getting this type of error.

Please advise.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you get the TLD file? Did you take it out of the jar file?

If the TLD file is in the jar file, leave it there and remove the TLD file from the file system and remove the web.xml entry. They are unnecessary and could be getting in the way. This may not be your issue, but it's the first thing to eliminate.
 
Thanuja Vishwanath
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I downloaded pager-taglib as a zip file in which tld was present and then a seperate jar file pager-taglib.jar. but this jar file doesnot have the tld in it.

downloaded from the below link
http://jsptags.com/tags/navigation/pager/download.jsp

Documentation:
http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanuja Vishwanath wrote:I downloaded pager-taglib as a zip file in which tld was present and then a seperate jar file pager-taglib.jar. but this jar file doesnot have the tld in it.


Ick. OK, they're doing things the old fashioned way.

Next step I suppose would be to find out what SimplifiedJSPServlet is. Is it in any of the jar files in your application?
 
Thanuja Vishwanath
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No there is no file called SimplifiedJSPServlet in any of my jar file.

when i googled i found this link
http://netbeans.org/bugzilla/show_bug.cgi?id=172334

and what about this. is this file present in netbeans pkg
http://www.java2s.com/Open-Source/Java-Document/IDE-Netbeans/web.core/org/netbeans/modules/web/core/syntax/SimplifiedJSPServlet.java.htm
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As this is looking more and more like a NetBeans issue, I've moved it to the IDEs forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic