Unable to retrieve object tfrom the struts form

Discussion in 'Java' started by hrpreets@gmail.com, May 1, 2008.

  1. Guest

    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 ???
    , May 1, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Hermansson

    Unable to retrieve message

    Peter Hermansson, Jan 14, 2005, in forum: VHDL
    Replies:
    1
    Views:
    401
  2. Raj
    Replies:
    0
    Views:
    514
  3. Li Zhang
    Replies:
    4
    Views:
    6,036
    softip
    Feb 27, 2009
  4. David
    Replies:
    2
    Views:
    195
    Bob Barrows [MVP]
    Sep 20, 2007
  5. Replies:
    6
    Views:
    148
Loading...

Share This Page