Hi my lovley folks,

I am using a jsp to print the info from my DTO object( AdjustmenBean) and using that 
object's property to display in my page thru iterate tag. No info is coming numeric is 
coming as zero. Any body can look my code and Pl tell me where I am doing wrong.
Thank u in advance, Pl reply me.

Action Class Where I am Constructing
private ArrayList buildArrayBeans()
{
// bAlist.clear();
ArrayList bAlist =new ArrayList();

String[] activityTypes = {"Activ1", "Activ2" };
String [ ] amounts1 = { "10.00" , "20.00" , "30.00" };

String [ ] amounts2 = { "10.00" , "20.00" , "30.00" };
String[] activityTypes2 = {"Activ2", "Activ21" };

bAlist.add( new AdjustmentBean( activityTypes,
10.00,
"Business Unit 1",
"Customer Ref No 1",
new Date( "03/05/2003"),
"Description 1",
"internal Comment 1",
false,
amounts1,
111111,
10.67, 1000, 99999 ));
bAlist.add( new AdjustmentBean( activityTypes2,
10.00,
"Business Unit 1",
"Customer Ref No 1",
new Date( "03/05/2003"),
"Description 1",
"internal Comment 1",
false,
amounts2,
111111,
10.67, 1000, 99999 ));


return bAlist;

}




/**
* method to build the form
* @param pForm The <code>ManageInvoiceForm</code>
* @param pRequest The HTTP request we are processing
*/
private void buildForm( InvoiceAdjustmentForm pForm, HttpServletRequest pRequest)
{
pForm.setSelectedProjectName("one");
pForm.setSelectedFleetCode("two");
pForm.setSelectedBillingPeriod("two");
buildBillingPeriod( pForm.getBillingPeriodEndDate() );
buildFleetCode(pForm.getFleetCode( ) );
buildProjName(pForm.getProjectName() );
pForm.setAdjustBeans(buildArrayBeans());
}
}
FOrm

public void setAdjustBeans( ArrayList adjustBeans) {
this.adjustBeans = adjustBeans;
}
public ArrayList getAdjustBeans() {
return adjustBeans;
}

I did not send DTO object as it will become very bulky
JSP page
<TD><html:text property="adjustmentBean.orderNumber"/></TD>
<TD><html:text property="adjustmentBean.stopNumber" /></TD>

<TD class="input" align="left">
<html:select style="{width: 156px;}" name="invoiceAdjustmentForm" 
property="adjustmentBean.activityType" size="1">
<html:options collection="activityTypeList"/>
</html:select>
</TD>


<TD><html:text property= "adjustmentBean.date" /></TD>
<TD><html:text property= "adjustmentBean.customerReferenceNo" /></TD>
<TD><html:text property="adjustmentBean.customerBusinessUnit" /></TD>
<TD>
<html:checkbox property="adjustmentBean.manualInvoice"/></TD>
--
<TD><html:text property="adjustmentBean.quantity"/></TD>
<TD><html:text property="adjustmentBean.rate"/></TD>
<TD><html:text property="adjustmentBean.amount"/></TD>

<TD class="input" align="left">
<html:select style="{width: 156px;}" name="invoiceAdjustmentForm" 
property="adjustmentBean.measures" size="1" >
<html:options collection="mList"/>
</html:select>
</TD>

<TD><html:text property="adjustmentBean.description"/></TD>
<TD><html:text property="adjustmentBean.internalComments"/></TD>
<TD> </TD>

ends here
Thanks again I will be


---------------------------------
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to