You do this using tiles. Take a look at Section 5 in the following pdf: http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf
Niall ----- Original Message ----- From: "Sanoj, Antony (IE10)" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, April 05, 2004 8:58 AM Subject: How to use DispatchAction for a List header? > > I have some 10-15 views which display the list of items based on a key. > for eg: if the key is ProblemReport, the view that will be called will be a > problem report list. > if the key is Notification, it will be notification list..etc > > Now each list view has a header frame and a content frame. > Header page drives the content page based on multiple drop downs. > Header frame page can have multiple dropdowns which are different across > headers. > Based on the user selections in the header page, a generic query string > attribute is set in a Context state bean, > which can be used to call the backend to get data in xml. > This makes Content generation generic and enables a single action to handle > data generation of all content pages. > > I think that is enough context, now coming to my problem, > I want to have an action execute before calling a header page to set data > required for the rendering of the > header page. This data is different across headers. So I need some custom > business calls to set data for each. > I don't want to use an independent action class for each header page. > > Now my question is, how can I use a DispatchAction for these header pages > so that my request contains a parameter, method with value > generate<Key>Info. (Usage of Key is mentioned above) > This has to come as parameter to my DispatchAction. > > <frameset rows="70,*" framespacing="0" frameborder="0" bordercolor="#E4F0FC" > scrolling="auto" noresize="true"> > <html:frame name="fmeListHeader" action="Header" scrolling="no" > noresize="true" frameborder="0" /> > <html:frame name="fmeContentList" action="Content" scrolling="auto" > noresize="true" frameborder="0" /> > </frameset> > Header in fmeListHeader is the path to the DispatchAction. > > What is the best way to do this? How can I pass the parameter as I can't use > a hidden field here? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]