<bean:write name="AwardMasView" property="safAwdNameShort"/>
along with showing create a hidden property with the same name and input and then u 
will be able to get the changes.

Don't know the reason but this solves my problem , as i feel bean:write is only going 
to display the values for the given field 
-----Original Message-----
From: Michael Blair [mailto:[EMAIL PROTECTED]
Sent: 10 October 2003 16:34
To: [EMAIL PROTECTED]
Subject: Processing a 'POST' from the JSP Page for an ArrayList?


I'm new to struts and so far love it, but this piece is killing me. I have a
jsp, form bean, view, action. I am ok with loading an arraylist and
embedding it into the jsp page using the iterate. Now, I want to make
changes to the table in the browser which is represented as an iterator, and
then I would like to get access to these changes back in my action class.
Currently, the action class sees the original view and not the updated view.
Here are some code snippets.

JSP -
<html:form action="DeleteAwards?Method=DeleteAward">
.
.
<logic:iterate name="awardMasResultsForm" property="awards"
id="AwardMasView">
.
.
     <TD VALIGN="MIDDLE" ALIGN="LEFT" class="cell">
       <bean:write name="AwardMasView" property="safAwdNameShort"/>
     </TD>
     <TD VALIGN="MIDDLE" ALIGN="CENTER" class="cell">
       <html:checkbox name="AwardMasView" property="deleteRecord"
value="delete" indexed="true"/>
     </TD>
Action Class -
      List awards = ((AwardMasResultsForm)form).getAwards();
      AwardMasView awardView = (AwardMasView)awards.get(1);
      Iterator i = awards.iterator(); // this allows you to loop thru the
Arraylist
      while (i.hasNext()) {
       AwardMasView awardmas = (AwardMasView)i.next(); // get a copy of an
AwardMas bean from the list
        System.out.println(awardmas.getSafAwardCode());  //would like to see
changed value here
        System.out.println("JLB -delete " + awardmas.getDeleteRecord()); //
would like to see changed value here
      }

Let me know if I can offer anything else to help with this. :)

Mike


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


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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

Reply via email to