Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What taglib do you recommend?  RSS feed

 
filbert
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on choosing some tag libraries for my project. I could create custom tags, but I'd much prefer to use pre-built open-source if possible.
I am developing in WSAD 4.03 behind a firewall. This gives me a few constraints:
- taglib must be JSP 1.1
- I must have access to the full source code
- I would prefer a light taglib that isn't tied to a lot of backend code.
The first point precludes JSTL which requires JSP 1.2.
These last two points prevent me from using Struts. The tablibs for struts appear to be deeply rooted in the entire struts framework which we do not want to use.
Do you guys know a way to separate the struts taglib from the framework while still using local source code (the URI="http://sun.com/..." doesn't work b/c of the firewall)?
If not, what other open source taglibs would you recommend?
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can still use the struts tags without using the whole struts framework. They're dependent on some of the struts *classes* as they're linked with them, but that just means you need the other jars in your lib directory.
I'm not sure what your problem is with the sun URI... in fact, you didn't give enough information for me to even know for sure what's trying to access them!
Having said all this, there is also another excellent taglib that I've seen people mention and the demos look pretty slick. You can find it on sourceforge at
http://sourceforge.net/projects/displaytag/
or its more complete homepage is at
http://edhill.its.uiowa.edu/display/
 
filbert
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the suggestions, I'll look at them.
I'm not sure what your problem is with the sun URI... in fact, you didn't give enough information for me to even know for sure what's trying to access them!

To be honest, i don't know what's accesing them either, but in the TLD and in the web.xml they all have <uri>http://java.sun.com/...</uri> and even the DTD for the TLDs is referencing the sun servers. The error I keep getting is "connection timed out" so I'm guessing it's trying to contact the sun website for something but it can't make the connection... I know that copying the source code locally and changing all the URIs to point to the local sources fixes it, and fixes the DTD not found error as well. To me, that sounds like a firewall issue.
So, due to the firewall issue, when I tried to intall just the Struts tag libs, the classes I tried referencing had compile errors and I ended up having to import tons of java files. I would have tried just the JAR archives, but I cannot find any information on what JARs I need to just get the taglibs to work.
[ July 01, 2003: Message edited by: filbert ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!