Discussion Locked

Question On Java Server Page

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What is the diffrence between customize JSP tag and useBean?Can useBean replace the need for customize JSPtag?If so how?

3 replies

by davram

Hi, sandeep.
The difference between custom tags and beans is one of a conceptual level, rather than a technical one.
The business logic, i.e. the beans, are handled, within the JSP page, by the scriplets. Any change made, later, in the beans, might imply changes in the scriplets, so the modification of the JSP page.
The custom tags, on the other hand, are a language extension that replaces the use of scriplets, the JSP page dimensions could get, this way, smaller.
These are two alternative ways for generating dynamic content, but there is nothing that can be done with one and cannot be done with the other. The choice is made by the developer.

For more informations, you probably know where to look, but I remind some URLs, anyway:

http://developer.java.sun.com/developer/technicalArticles/Programming/jsp/index.html

and

http://jsptags.com/

Hope that helps,
Dan.

This discussion is closed to new replies.