EJB & JSP: Java On The Edge, Unlimited Edition by Lou Marco ISBN: 0764548026 Your Guide to Cutting-Edge J2EE Programming Techniques. Writing an Example Nested Tag Although the formatLine and repeatLine tags in the previous section were shown to execute when nested, the tags can execute independently of each other. In other words, the presence or absence of one tag has no effect on the execution of the other. At times, one tag requires a specific parent to execute, or a parent requires specific children. In JSP terms, parent/child tags that depend on one another for proper execution are called nested tags. Writing nested tags is very similar to writing the sort of tags you ve already learned. The difference is that the objects (beans) in the nested tags need to communicate. The tag library interfaces have methods that enable a child tag to determine its parent. Once done, you can invoke parent tag methods from the child tag. The following sections describe how to construct a case construct as a series of nested tags. The general format is as follows:
Adult web hosting has rich experience in providing unique solutions for the customer’s needs, just check frontpage web hosting services.