FileDocCategorySizeDatePackage
ZipCodeTag.javaAPI DocExample1367Wed Apr 05 20:05:30 BST 2006com.oreilly.ajax

ZipCodeTag

public class ZipCodeTag extends javax.servlet.jsp.tagext.TagSupport

Fields Summary
private String
zipcodeId
private String
stateId
private String
cityId
private String
url
Constructors Summary
Methods Summary
public intdoStartTag()


      
    
        try
        {
            this.pageContext.getOut().print(
                    JavaScriptCode.getZipCodeScript(stateId, cityId, zipcodeId,
                            url));
        }
        catch (IOException e)
        {
            System.out.println("couldn't write JavaScript to jsp"
                    + e.getMessage());
        }
        return EVAL_BODY_INCLUDE;
    
public java.lang.StringgetCityId()

        return cityId;
    
public java.lang.StringgetStateId()

        return stateId;
    
public java.lang.StringgetUrl()

        return url;
    
public java.lang.StringgetZipcodeId()

        return zipcodeId;
    
public voidsetCityId(java.lang.String city)

        this.cityId = city;
    
public voidsetStateId(java.lang.String state)

        this.stateId = state;
    
public voidsetUrl(java.lang.String url)

        this.url = url;
    
public voidsetZipcodeId(java.lang.String zipcodeId)

        this.zipcodeId = zipcodeId;