Hi Fabio,
I would guess that Freddy wanted to be able to return either a List<Contact> or a Set<Contact> so he used Collection because both List and Set are descendants of Collection.

Regarding the getters, JSP expression language (EL) is what requires them to start with "get". That really doesn't have anything to do with Stripes.

Aaron

Fabio Fonseca wrote:
Me again on the Stripes Book. I'm re-reading it, trying to get a better grasp on the framework.

Daoud,
At page 48 (email_01 exemple), you're using the getContacts method with a return type of List<Contact>, but in the final version of the code (email_36), that same method has a return type of Collection<Contact>. Why did you change the return types? What is the difference?

About the signature of the event handlers:

Throughout the book all (or almost all?) of the signed methods are named getSomething, which are called from the JSPs templates via a ${ActionBean.something} tag. Why/how does Stripes 'cut' the 'get' part of the method's name. Should all signed methods be getters? I see that there is some non-getter methods being called in the JSPs, but these are called explicitly, using the beanclass attribute inside the JSP's tags.

Don't know, but somehow I think that by cutting the 'get' part of the method's name turns the more harder to read than otherwise.

thanks for the attention!
Fabio
------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
------------------------------------------------------------------------

_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to