Unable to retrieve object tfrom the struts form

H

hrpreets

Hi All,

I have a form which has objects and list of objects.
public class TimeIntervalCategoryForm extends ActionForm{
private IntervalCategoryVO intervalCategoryVO;
private List timeIntervalVOCol; -- list of value objects

Now in the jsp i have

<html:form name="timeIntervalCategoryForm" action="/
suggestivesalesconfig/timeIntervalCategory.do"
type="com.fast.cfm.suggestivesalesconfig.TimeIntervalCategoryForm">
<bean:define id="intervalcatvo" name="timeIntervalCategoryForm"
property="intervalCategoryVO"
type="com.fast.cfm.db.vo.IntervalCategoryVO" scope="request" />
----
---
<table border="0" cellpadding="0" cellspacing="2">
<tr><td class="caption" valign="top" nowrap>
<bean:message
key="suggestivesales.timeintervalcategory.label.timeintervalcat"/></
td>
<td class="detail" colspan="3" nowrap><html:text name="intervalcatvo"
property="intervalCatDesc" size="50" maxlength="30"/></td>
</tr>
---
---

After feeding i the values on the jsp when i click ok button, then in
the Action class when i try to fetch the object from the
Form(TimeIntervalCategoryForm) it reurns null.
TimeIntervalCategoryForm timeIntervalCategoryForm =
(TimeIntervalCategoryForm)form;
timeIntervalCategoryForm.getIntervalCategoryVO() ==> is null ???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top