You can always create an ActionBean superclass if you want to re-use that
logic in other action beans (this is probably the best approach).  Or... if
abstracting the logic into a superclass is not appropriate then you could
easily create a simple view helper class (which has the logic) and reference
that in the getSearchFields() method (or whatever the method is).

-- Rick


On Tue, Jan 4, 2011 at 9:49 AM, Jonathan <jesuisjonat...@gmx.fr> wrote:

> Yes it works. But I can not reuse the logic in getSearchFields() if I need
> it
> for other pages (for the sake of modularizing presentation). I need to
> duplicate
> the code or creating a class that hold the code and delegate to it but it
> can be
> considered as the lesser of two evils.
>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to