I am not sure if I should use jstl or struts tag library. I can understand using the struts html tag lib when rendering a form but as for the other tags libs (logic, bean) would I be better of using jstl?
That answer can be different for different situations.
If I were an architect deciding on a direction for my group, or a "one-man band" able to do anything I choose, I'd say a choice of jstl tags would be a good choice.
If I'm working in a shop where everybody knows struts, and all the previous code uses struts tags, I'd continue to use struts tags, because in this situation, they communicate better.
In any case the I find the struts <html:xxx> tags more convenient because they automatically pull in the value from existing data, rather than having to code a scriptlet or a <cut> in the value attribute.
[Bear: edited for language]
[ March 16, 2005: Message edited by: Bear Bibeault ]
You can combine them nicely when you use the Struts el extension of Struts for the html rendering and JSTL core as a "replacement" for Struts logic.
You can find a large amount of examples on the net and this combination will certainly speed up your development process.
Note however that when you start using Struts extensively and would like to use a presentation framework like SiteMesh, as a replacement for Struts Tiles. You could run into troubles when you combine Struts and JSTL, simply because SiteMesh contains some well known bugs when this combination is used.
Originally posted by Jeroen Wenting:
JSTL doesn't say anything about encoding. If there's no JSTL implementation that supports Russian don't blame Sun, blame Russian programmers for never making one.
Maybe see this as an incentive to implement a JSTL library that does support Russian...
Probably you are right. This is not a big deal to create set of tags that render graphic controls but this is a problem to support this library long enough because definitly developing of this library won't do any profit for the developer. I actually don't really like all this idea of distributing any open source libraries like Struts or JSTL for free. Hope, russian developer have something to do except writing free libs.