Java Reference
In-Depth Information
L ISTING 19.7
Continued
<djs:helloAttribute name=”Bob” /><br>
</body>
</html>
Copy this file to the <SERVER_ROOT>/webapps/djs/ directory and open your browser to the
following directory:
http://localhost/djs/HelloAttribute.jsp
You should see a page similar to Figure 19.4.
F IGURE 19.4
The HelloAttribute Tag Page.
Summary
In this chapter you covered custom JSP tag libraries. We discussed the two types of tag
libraries: tags without bodies and tags with bodies. We also looked at how attributes can be
passed to custom tags.
19
In Chapter 20, “Catalog Case Study,” we will begin our case studies. The next few chapters
will show you how to put together all the concepts we have covered so far.
 
Search WWH ::




Custom Search