One of the most exciting features about JSP is the ability tobuild and use custom "tag libraries" in your JSP applications. In thisarticle, find out why tag libraries are a Good Thing, and read about how toget and install custom tag libraries for common tasks.
You've already seen how JSP "actions" work - in the last article, for example, we demonstrated the <jsp:useBean> and <jsp:setProperty> actions in conjunction with JavaBeans, while <jsp:include> was illustrated in the very first article in this series. However, we missed out on a couple of important ones - and so, we'd like to introduce you to <jsp:plugin>, used to incorporate Java applets into a Web page.
The <jsp:plugin> directive takes care of generating all the HTML code necessary to embed and activate a Java applet. Consider the following example:
The code above sets up the applet contained in
"NewsTicker.class", and passes it a bunch of name-value pairs of parameters. The When JSP compiles and renders the page, the code above is automatically converted to its HTML equivalent.
And with that, it's about time to call this a wrap. We hope
you enjoyed it, and that it served as a good starting point for your entry into the world of JSP.