struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanoj, Antony (IE10)" <>
Subject How to use DispatchAction for a List header?
Date Mon, 05 Apr 2004 07:58:49 GMT

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
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" />
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:
For additional commands, e-mail:

View raw message