Hello, Jose!

Depending on your application requirement, you should choose one of the 
following solutions:
        1. in window2: after the user selects some employers, save the selected 
employers in DB and in window1 retrieve the saved employers from the DB.
        2. in form-bean put a property: selectedEmployers = array of the IDs of 
employers. In window2, after the user selects the employers, the 
selectedEmployers array gets populated with the IDs of the employers selected. 
Back in window1, you have now the IDs of the selected employers so, making a 
simple query to the DB, you can get the info needed for each ID from 
selectedEmployers.

Hope it helps,
Emilia

-----Original Message-----
From: José María Tristán [mailto:[EMAIL PROTECTED] 
Sent: woensdag 14 juni 2006 8:30
To: user@struts.apache.org
Subject: Pass dates between two windows


Hi,
        I have a form bean than it's use in two windows. Per example:

        window1.
                html:button: "search Employers"

        window2
                list Employers
                html:select property="employers"

                html:button close

        The button "search Employers" open the window 2. Here, the user select 
employers of a list and close the windows to save the dates. Then, i need show, 
per example, in a label, into the first window the employers select by the user.
        How can i do it?

        Thank you very much.


---------------------------------------------------------------------
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]

Reply via email to