seetharaman venkatasamy wrote:Please, Post this topic in sturts forum. you may get better response
Coming to your question. you should read about Index Properties
Deeps Mistry wrote:Thanks for your prompt reply.
seetharaman venkatasamy wrote:
Deeps Mistry wrote:Thanks for your prompt reply.
You are welcome. and please read (and implement yourself) about the index property article. it is very usefull
Deeps Mistry wrote:Is it compulsory to use DynaActionForm to implement the index property?
seetharaman venkatasamy wrote:
Deeps Mistry wrote:Is it compulsory to use DynaActionForm to implement the index property?
Not at All
Deeps Mistry wrote:
seetharaman venkatasamy wrote:
Deeps Mistry wrote:Is it compulsory to use DynaActionForm to implement the index property?
Not at All
Hi,
I am stuck and confused and dont know what to do further. Please help me out ranchers.
I tried using indexed property but didn't work out.
Please help me out.javascript:emoticon('');
Thanks
Deeps Mistry wrote:
Deeps Mistry wrote:
seetharaman venkatasamy wrote:
Deeps Mistry wrote:Is it compulsory to use DynaActionForm to implement the index property?
Not at All
Hi,
I am stuck and confused and dont know what to do further. Please help me out ranchers.
I tried using indexed property but didn't work out.
Please help me out.javascript:emoticon('');
Thanks
Hi all,
I tried the following:
1) Created a bean containing 4 getters setters for the 4 text boxes in a row.
2) Then i created an arraylist and added 10 new bean objects to it.
3) I set this arraylist in the form.
4) I put a logic iterate tag to iterate over the arraylist in my jsp page.
The code is a s follows:
My bean:
public class AddPOBean {
private String POD = null;
private String PON = null;
private String POQ = null;
private String UOM = null;
public String getPOD() {
return POD;
}
public void setPOD(String pod) {
POD = pod;
}
public String getPON() {
return PON;
}
public void setPON(String pon) {
PON = pon;
}
public String getPOQ() {
return POQ;
}
public void setPOQ(String poq) {
POQ = poq;
}
public String getUOM() {
return UOM;
}
public void setUOM(String uom) {
UOM = uom;
}
}
My Action class:
arrBean = new ArrayList();
for(int i = 0;i<10;i++)
{
objAddPOBean = new AddPOBean();
arrBean.add(objAddPOBean);
}
objAddPOForm.setArrBean(arrBean);
My jsp page:
<tr>
<td>
<logic:iterate id="AddPOForm" name="AddPOForm">
<html:text name ="AddPOForm" property="arrBean"></html:text>
</logic:iterate>
</td>
<tr>
I am getting the following error:
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot create iterator for this collection
Am i doing anything wrong? Please help me out
Thanks
Consider Paul's rocket mass heater. |