In a special case, I need to make the same as <jsp:useBean in Java class.
It sounds like using org.apache.commons.beanutils.BeanUtils.cloneBean(Object bean) will do the work.
But what is driving me crazy is that I can't find the TLD associated to <jsp: tags, nor the class used by <jsp:useBean.
Even <short-name>jsp</short-name> on Google gives me nothing.
The JSP specs I found makes me believe that it's not a tag like the others and that the code behind <jsp:useBean is in Java's core.
Am I right? Have I missed something?
There's no TLD for
<jsp:elements in the JSP page. These elements are part of the JSP language. With this language you can create JSP pages but if you need to use custom TLDs like JSTL then you should usetaglibdirective.What is interesting in JSP: it's called now Jakarta Server Pages. You can read more about this in the article What is JSP? Introduction to Jakarta Server Pages.