You need to add your object to the request or the session. 
Try adding 
if ("request".equals(mapping.getScope()))
 request.setAttribute(mapping.getAttribute(), oForm);
else
 session.setAttribute(mapping.getAttribute(), oForm);

Where your struts-config.xml contains something like
    <action path="/getCustomerInfo"
            type="com.yourpackage.GetCustomerInfoAction"
            name="oForm"
            scope="request"
            validate="false">
      <forward name="browse" path="/browse.jsp"/>
    </action>

-----Original Message-----
From: Leena [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 12:14 AM
To: [EMAIL PROTECTED]
Subject: How to Forward from one action to another action


Hi All,

        Here is the code which i've written in my action class.

         ABCustomerInfo[] oCustInfo = remote.searchAddressBookByCriteria
(iPartnerId,iBusinessId,data,true);
         System.out.println("Number of Customers "+oCustInfo.length);
         oForm.setCustomers(oCustInfo);
         ActionForward forward = mapping.findForward("browse");
         return (forward);

   Here it gets the data from the remote object. But when i go to the
forwarded browse file, i am getting customerinfo object as null. It says it
is not set. Can anyone help me to fix this?

Thanks and Regards

Leena


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

Reply via email to