DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36762

           Summary: After session timeout, exception in BeanUtils.populate
                    for array property
           Product: Struts
           Version: 1.1 RC1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Unknown
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


In my struts-config.xml file, I have a form bean defined as follows:
    <form-bean name="detailedSrvPeriodForm" 
type="org.apache.struts.validator.DynaValidatorForm">
        <form-property name="employeeId" type="java.lang.String" />
      <form-property name="retirementScenarioId" type="java.lang.String" />
      <form-property name="serviceHistoryEntered" type="java.lang.String" />
      <form-property name="detailedServiceHistoryId" type="java.lang.String" />
      <form-property name="service" type="com.frb.bean.DetailedServicePeriod
[]" />
      <form-property name="tmpService" type="com.frb.bean.DetailedServicePeriod
[]" />
    </form-bean>

Note the two properties that are arrays of other beans.

I have an Action that maps the Form to a page.  I navigate to the page, where 
the populated form is displayed.  However, if the user submits the page after 
the session times out, and if the form had at least one item in one of the 
arrays, the BeanUtils.populate call in RequestUtils.populate will throw an 
ArrayIndexOutOfBoundsException.  Perhaps because the form gets cleared due to 
the session timeout, but the new form expects to see at least one item in the 
array?

Due to the thrown exception in BeanUtils.populate, the user is brought to a 
blank page, with no indication of an error.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to