Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
5Activity
0 of .
Results for:
No results containing your search query
P. 1
JSP and Beans

JSP and Beans

Ratings:

4.0

(1)
|Views: 653 |Likes:
Published by api-25930603

More info:

Published by: api-25930603 on Oct 16, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

1
CISH
CISH-
-6510 Web Application
6510 Web Application
Design and Development
Design and Development
JSP and Beans
JSP and Beans
2
Overview
Overview
\ue000
\ue000WeatherBean
WeatherBean
\ue000
\ue000Advantages to Using Beans with
Advantages to Using Beans with
JSPs
JSPs
\ue000
\ue000Using Beans
Using Beans
\ue000
\ue000Bean Properties
Bean Properties
\ue000
\ue000Weather Example
Weather Example
\ue000
\ue000Sharing Beans
Sharing Beans
\ue000
\ue000Timer Example
Timer Example
2
3
WeatherBean
WeatherBean

package heidic;
public class WeatherBean
{// Define private properties

private String zipcode;
private int
currentTemp;
private int
high;
private int
low;
private String forecast;
4
WeatherBean
WeatherBean
(cont.)
(cont.)
public WeatherBean()

{ zipcode = "00000";
currentTemp = 0;
high = 0;
low = 0;
forecast = "Not available.";

}
3
5
WeatherBean
WeatherBean
(cont.)
(cont.)
public String getZipcode()
{ return zipcode;
}
public void setZipcode(
String zip)
{ zipcode = zip;
}
public int getCurrentTemp()
{ return currentTemp;
}6
WeatherBean
WeatherBean
(cont.)
(cont.)
public int getHigh()
{ return high;
}
public int getLow()
{ return low;
}
public String getForecast()
{ return forecast; }

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Sunil Soni liked this
Saravanan Meenu liked this
ajayscrbd liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->