JavaServer Page

February 5, 2007

The Show tag String name = data.getAttributeString(”name”); String

Filed under: JSP Tag Libraries — webmaster @ 11:40 am

CHAPTER 8 Using JavaBeans with tags book.reflection.ShowTag book.reflection.ReflectionTagExtraInfo empty Show a certain object property value. object false true name false false scope false false index false true property false false ShowTag in action We can create a JSP file that uses our new tag to show bean properties; the JSP driver (listing 8.8) uses our tag to explore the values present in the request and response objects (this is possible since both objects are JavaBeans). Listing 8.8 JSP file that uses ShowTag < %@ page import="java.util.*" %> < %@ page errorPage="error.jsp" %> < %@ taglib uri="http://www.manning.com/jsptagsbook/beans-taglib" prefix="bean" %> < %--javax.servlet.jsp.jspRequest is the JSP attribute

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Tomcat Web Hosting services

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Java Web Hosting