devdaily home | apple | java | perl | unix | directory | blog

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

package tadm;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.Tag;
import javax.servlet.jsp.tagext.TagSupport;

import tadm.AntTag;

/**
 * Child tag to add ant targets to Ant taglib.
 * 
 */
public class AntTarget extends TagSupport {
    
    public AntTarget() {}

    public int doStartTag() throws JspException {
	Tag parent=getParent();
	if( parent == null  )
	    throw new JspException( "AntTarget used as top-level tag,"+
				    "must be inside ");
	if( ! (parent instanceof AntTag ))
	    throw new JspException( "AntTarget must be child of ");

	AntTag antTag=(AntTag)parent;
	if( name == null ) {
	    String names[]=pageContext.getRequest().
		getParameterValues( param );
	    for( int i=0; i




Copyright 1998-2008 Alvin Alexander
All Rights Reserved.
 
devdaily.com is based in louisville, kentucky, and this web site is hosted by godaddy.com