Rich wrote:
> Is petDao a java bean?
Probably a DAO (Data Access Object), producing a Collection from a database.
Is it an action?
No.
How do you set it up on the page?
It's presumably imported as a bean, e.g. with <jsp:useBean .../>
Note this is not a particularly good way of doing it in anything other
than a sample. The view is accessing the model directly in MVC parlance.
Read up on MVC.
What is pets?
It's shorthand for the getPets() method in petDAO.
Does it refer to petDao.getPets?
Yes. You are one step ahead of me.
what does it return?
A Collection of Pets.
What do id and name refer to?
ID is what gets returned in the POST when you've selected that element
and submitted the form. Name is what is displayed for that element.
Does getPets return a list of objects that contain the fields name and
id which have the getters and
setters for those fields?
Yes.
Why do you ask so many questions?
A. I'm learning Struts. It's my job.
--
Regards,
Richard