I'm running into some problems trying to get my struts forms to behave as I 
would like them to via actions for passing data around for a common task 
we'll be using for different data-sets.  Let me explain.

I have a form that contains 3 collections where-in each collection is 
dependant upon the prior collection's selections:

 Collection #1 - Catalogs To Search
 Collection #2 - Major Categories To Search based on Catalogs Selected
 Collection #3 - SubCategories to Search based on Major Categories Selected

Now, the concept here is that when the user selects a choose button in this 
form for collection #1, a popup window opens where a query is executed to 
retreive the available list of catalogs.  

What has to be passed to this popup window is:

 - Current form's selections in collection #1 (catalogs)
 - A filter clause

This popup would execute an action that calls a function to retreive the 
resultset filtered by the filter clause.  This action would also set the
request-scope form's selectedItems string array to those set in the 
calling form and then forward to my jsp where the user can uncheck any
prior selections, clear all selections, etc.

Once they're done, they'll hit the return button which passes the form 
data to a final action that examines the selected values and passes the
selection ids back to the original form and closes the popup window.

The popup window uses a custom form which extends ActionForm like the 
following:

public final class CheckBoxLVBForm extends ActionForm
{
  private String         filter;
  private String[]       selectedItems;
  private LabelValueBean items;

  ...
}

If you need more details, please ask but I have a deadline by Monday and this 
is the "core" part of how this application is to function.  If there is a much 
simpler approach, please let me know ... whatever works at this point is what 
is needed.  Functional is key here :-/

Thanks in advance!
Chris

 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to