Methods Summary |
---|
public int | doStartTag()
try
{
pageContext.getOut().print(getJavaScript());
} catch (IOException e)
{
System.out.println("couldn't write JavaScript to jsp" + e.getMessage());
}
return SKIP_BODY;
|
public java.lang.String | getCityId()
return cityId;
|
private java.lang.String | getJavaScript()
if (javaScript != null)
{
return javaScript;
}
else
{
String tempString = "";
String outString = "";
try
{
InputStream is = getClass().getResourceAsStream("oreillyajaxtags.js");
BufferedReader br = new BufferedReader(new InputStreamReader(is));
while ((tempString = br.readLine()) != null)
{
outString += tempString;
}
outString = outString.replaceAll("stateId", stateId);
outString = outString.replaceAll("cityId", cityId);
outString = outString.replaceAll("zipcodeId", zipcodeId);
outString = outString.replaceAll("urlName", url);
br.close();
is.close();
javaScript = outString;
} catch (IOException e)
{
System.out.println("couldn't get JavaScript from oreillyajaxtags.js"
+ e.getMessage());
}
}
return javaScript;
|
public java.lang.String | getStateId()
return stateId;
|
public java.lang.String | getUrl()
return url;
|
public java.lang.String | getZipcodeId()
return zipcodeId;
|
public void | setCityId(java.lang.String city)
this.cityId = city;
|
public void | setStateId(java.lang.String state)
this.stateId = state;
|
public void | setUrl(java.lang.String url)
this.url = url;
|
public void | setZipcodeId(java.lang.String zipcodeId)
this.zipcodeId = zipcodeId;
|