I am having a difficult time getting checkboxes to work in the following
scenario and am not sure what I am doing wrong.  Any help or guidance
would be greatly appreciated.

I have table which displays several rows.  In the first column of each
row, I have a check box to select that row.  I am keeping track of user
selections so when they return to the page, the checkboxes are
prepopulated with their previous selections.  


My Action contains the following:

        public Long[] getSelectedContracts() 
        {
                return setSelectedContracts.toArray(new Long[0]);
        } // end getSelectedContracts

        /**
         * This setter takes the provided String[] of selected contract
ids.
         */
        public void setSelectedContracts(Long[] palngSelectedContracts)
      {
        
setSelectedContracts.addAll(Arrays.asList(palngSelectedContracts));
        } // end setSelectedContracts
 
My JSP contains the following:

<s:checkbox name="selectedContracts"
fieldValue="${contract.npcContractId}"/>






-----------------------------------------
***Note:The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify the Sender
immediately by replying to the message and deleting it from your
computer. Thank you. Premier Inc.  

Reply via email to