Help using getters & setters
I am wanting to make a bean that will connect to a database and bring back data depending on what was entered in a html form. I have been told it would be easier if i make a bean that holds details of a single video. I have done this below, my question is in the servlet that connects to the database how will i use the result set to use these getters and setters?
package site;
publicclass vidBean
{
//protected variables
protectedint recording_id;
protected String title;
protected String category;
publicvoid setRecId(int Rec)
{
recording_id = Rec;
}
publicint getRecId()
{
return recording_id;
}
... etc

