hai everyone
This is my bean class named SelectionDetails.java
-------------------------------------------------
import java.util.ArrayList;
import java.io. Serializable;
public class SelectionDetails implements Serializable {
private
String place_interview="";
private String date_interview="";
private String interview_schedule_userid="";
public String getPlace_interview() {
return place_interview;
}
public void setPlace_interview(String place_interview) {
this.place_interview = place_interview;
}
public String getDate_interview() {
return date_interview;
}
public void setDate_interview(String date_interview) {
this.date_interview = date_interview;
}
public String getInterview_schedule_userid() {
return interview_schedule_userid;
}
public void setInterview_schedule_userid(String interview_schedule_userid) {
this.interview_schedule_userid = interview_schedule_userid;
}
----------------------------------------------------------------------------
then i created an array list inside my actionform something like this
---------------------------------------------------------------------
private ArrayList selectionProcess=new ArrayList();
public ArrayList getSelectionProcess() {
return selectionProcess;
}
public void setSelectionProcess(ArrayList selectionProcess) {
this.selectionProcess = selectionProcess;
}
----------------------------------------------------------------------------
My action class looks like this
-------------------------------
ArrayList list=selForm.getSelectionProcess();
SelectionDetails person=new SelectionDetails();
person.setPlace_interview("");
person.setDate_interview("");
person.setInterview_schedule_userid("");
selectionProcess.add(person);
selForm.setSelectionProcess(selectionProcess);
----------------------------------------------------------------------------
this is my
jsp page and this is what i want to iterate
------------------------------------------------------
<table width="100%" border=0 class="type1" cellspacing="2" cellpadding="5">
<logic:equal name="User" property="notify_dept_interview_time" value="1" >
<tr>
<td width="15%" align=right class="type1">Interview Place& Comments</td>
<td width="22%" class="type1"> <html:textarea roperty="place_interview" styleClass="textarea"/></td>
<td width="15%" align=right class="type1"> Date/Time : </td>
<td width="22%" class="type1"><html:text property="date_interview" readonly="true" styleClass="input_medium"/>
<td width="15%" align=right class="type1">Userid </td>
<td width="22%" class="type1"><html:text property="interview_schedule_userid" readonly="true" styleClass="input_medium"/></td>
</tr>
<</logic:equal>
here its fine..but when i add logic:iterate i am getting jsp exception.can anyone tell me what mistake i made.i did something like this
----------------------------------------------------------------------------
<table width="100%" border=0 class="type1" cellspacing="2" cellpadding="5">
<logic:iterate name="SelectionForm" property="selectionProcess" id="selectionProcess">
<logic:equal name="User" property="notify_dept_interview_time" value="1" >
<tr>
<td width="15%" align=right class="type1">Interview Place& Comments</td>
<td width="22%" class="type1"> <html:textarea roperty="place_interview" styleClass="textarea"/></td>
<td width="15%" align=right class="type1"> Date/Time : </td>
<td width="22%" class="type1"><html:text property="date_interview" readonly="true" styleClass="input_medium"/>
<td width="15%" align=right class="type1">Userid </td>
<td width="22%" class="type1"><html:text property="interview_schedule_userid" readonly="true" styleClass="input_medium"/></td>
</tr>
<</logic:equal>
</logic:iterate>
----------------------------------------------------------------------------
can anyone tell me my mistake and how to give iterate tag..as my deadline is approaching please help me
thanks in advance
sanju