Re: posting an updated collection back to Action

2003-02-12 Thread MarwanSalam [EMAIL PROTECTED]
Hi, I looked at all your the responses to this thread and then looked at Ted Husted's Struts Tip #6 - Use an array to capture multiple parameters to solve my problem. However, I still have some problems when I submit my changes(even if I don't change anything). My ActionForm looks like this:

RE: posting an updated collection back to Action

2003-02-12 Thread Clement, Stephen
or reset, they will not get created and/or populated. I have yet to find a nice solution to this. -Original Message- From: MarwanSalam [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 6:34 PM To: [EMAIL PROTECTED] Subject: Re: posting an updated collection back

Re: posting an updated collection back to Action

2003-02-10 Thread atta ur rehman
For your orderDetail textbox you could have setOrderDetail(String[]) and String[] getOrderDetail() getter/setter in your ActionForm class. Hope this helps. ATTA - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 10, 2003 3:45 PM Subject: posting

RE: posting an updated collection back to Action

2003-02-10 Thread John Espey
You can create indexed properties ( getOrderDetail(int), setOrderDetail(int, string) ) You have to back them whatever way you see fit (I've used arrays in the past but I had to make sure they were sized propertly on each call). On your JSP, the resulting names for your input fields will need

Re: posting an updated collection back to Action

2003-02-10 Thread Derek Shen
It's almost the same argument as Vigay's post general question. Basically, the simple solution is to capture all the new line information and update all of them, even it is not changed. If you are trying to avoid it, you can remember the old values and try to detect the change. In the old