File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Help on Multiple Records updation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help on Multiple Records updation" Watch "Help on Multiple Records updation" New topic

Help on Multiple Records updation

Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425

<logic:iterate id="participantList" collection="<%=arrayList%>" type="">
System.out.println("Value of K" + k);
<td nowrap class="clstdfont">
<bean:write name="participantList" property='<%="eid[" + k + "]"%>'/>
<html:hidden property="eid" />

<td nowrap class="clstdfont">
<html:text name="participantList" property="addMultipleParticipantFormBean.firstName" style="width: 120px"/>

<td nowrap class="clstdfont">
<html:text name="participantList" property="addMultipleParticipantFormBean.lastName" style="width:120px"/>

<td width="20%" nowrap class="clstdfont">
<html:text name="participantList" property="addMultipleParticipantFormBean.emailAddress" style="width:120px"/>

<td class="clstdfont"><select name="select"
class="clsInputtext" style="width: 120px">
<option value="Corporate">Corporate</option>
<option value="AERO">AERO</option>
<option value="MKTS">MKTS</option>
<option value="MCMS">MCMS</option>
<option value="HA">HA</option>
<td class="clstdfont">
<html:text name="participantList" property='<%="units[" + k + "]"%>' style="width: 80px"/>
<html:hidden property="units" />
<% k++; %>

Rahul Juneja

Rahul Juneja
ThoughtClicks -
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33117

What is the problem/question?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
Exactly this is the problem: "what is the problem?" :-).


blog -
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
I think,
Your code is about show all data in table.

And your problem about When update data from user, How to update data into database or not ?

Java Developer, Thailand
I agree. Here's the link:
subject: Help on Multiple Records updation
It's not a secret anymore!