posted 8 years ago
Hi, If we use SimpleTag handler classes, in the tld file if we declare <body-content>JSP</body-content> and if we call the corresponding tag in the jsp, we will get an JspException.(Because by default the JspFragment object will not accept scriptlets in the body of the tag, and can accept EL expressions, jsp standard actions, and custom actions.) But incase of Classic Tags, it will accept i.e. we can write the body with scriptlets, EL, standard and custom actions. My question is why the simple tags doesn't accept(scriptlets in the body), while classic tags accepts? Why that behavior is removed in simple tags? Can you please tell me in detail? Thankyou.