Skip to Content
0
Former Member
Jan 14, 2004 at 07:45 PM

HTMLB location: in Java code vs. JSP

32 Views

HTMLB controls can be instantiated in the Java code (say in class derived from DynPage) or can be created by using taglibs in JSP. The question is what the preferred way is and what are pros and cons? In general if it is not necessary to use on the page HTML or JavaScript there is no necessity to have JSP at all. The issue is that JSP is the mixture of three things Java code, HTML, and JavaScript. This mixture is difficult to support and SUN acknowledges this by saying that it is better to have Java code in the taglibs. In addition to this combination Java code, HTML, and JavaScript is difficult to debug. At the same time pure Java code can be debugged without any problems. The bottom line is there some guidelines/recommendations that identify when it is better to use DynPage with HTMLB components instantiated directly in the vs. DynPage/JSPDynPage with JSP? Any input on this issue will be appreciated. Thank you.