In several of the examples, the Jsp:usebean tag is used - combined with the Struts tags.
Now I new to Stuts but; Isn't possible to use "pure" Struts tags? - what's the advantage of using the Jsp:usebean tag over Struts tags?
Best Regards, Henrik
posted 10 years ago
Struts has a <bean:define> tag which is very similar to jsp:useBean. Either will work just fine.
You will also find that a number of JSTL tags are similar to struts logic:xxx tags and bean:xxx tags. There are differing opionions on which tags to use, but I find the overwhelming majority of developers tend toward using standard JSP and JSTL tags whenever possible, and only using Struts tags when there is no equivalent, as with the struts html:xxx tags.
The reason for this is mainly that any J2EE web programmer worth their salt knows the standard JSP and JSTL tags, and they may not know the Struts tags. So, it seems only natural to favor the most standard of the two tag libraries.
The other reason is that JSTL tags are a bit more powerful and flexible than the logic:xxx tags. [ January 22, 2006: Message edited by: Merrill Higginson ]