Sunday, December 30th, 2007
Line 11 shows a JSP expression containing a variable declared with a JSP declare. Line 12 shows some text concatenated with a Java method invocation. The HTML paragraph tags are outside the JSP expression tag markers. JSP may accept HTML tags coded within the tag markers. However, including HTML tags, which are formatting elements, with logic elements within JSP expressions is usually a poor coding practice. The generated HTML is identical to that shown in Listing 3-3; no need to be repetitious. Now that you ve seen a few simple JSP pages, you might wonder about competing technologies. How does JSP stack up against the competition? What features does JSP have that the competition doesn t? What are the advantages and disadvantages of using JSP? The above questions are addressed in the next section.
We provide special commissions and earns up to $125 us per referral for all website hosting directories. With such big commissions you should immediately sign up for our affiliate program for website hosting directory sites.