On Mon, 14 Mar 2005 00:27:19 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > So e.g. you have an action, which shows a product list, called through URL > "/productlist.do". > This URL/action can be called from a menu, from a book detail form (when > saving) and from a cd detail form (saving). > So it doesn't make sense to associate this action with one specific form bean > since there are already two different beans used with > this call (and one call using no bean at all). > Connecting the bean directly to the form (like JSF does) would be perfect. > Struts-Faces uses the action-formbean-connection, like Struts does.
This particular use case benefits from one of the features of the Shale framework (my proposal for the future of Struts), which is based on JSF. Starting point: http://wiki.apache.org/struts/StrutsShale The key is that the prerender() method of the ViewController bean associated with your productlist.jsp page is called, just before rendering, no matter how you navigated to it (or where you came from). This is the right place to do the database search that actually populates the product list table that is being generated. Craig