Hi Dave

I have tried a few more options now..

 I am able to get one value from the mfform in the second action class..
MffsActionForm is the actionform for the second action class, will that affect
it to reset values. If that is the case then all values should be reset to null,
but I can get one value.

 I have for now set the required values in the request(when in the first action
servlet) and getting it in the second action servlet and setting the actionform
again.

Regards
Rajesh J



                                                                                       
                             
                                                                                       
                             
                                         To:     Rajesh Jayabalan/LAM/[EMAIL 
PROTECTED] NYC                             
             "Dave Newton"               cc:                                           
                             
             <[EMAIL PROTECTED]        Subject:     Re: problem with session           
                           
             m>                                                                        
                             
             07 Mar 2003 04:16 PM                                                      
                             
                                                                                       
                             
                                                                                       
                             



Hola,

Man, you have sturdy fingers! Ever think of using shorter variable names
and a slightly clearer coding style?! :)

// segment 1
    updatedel(actionForm, action);
    HttpSession session = httpServletRequest.getSession();

    // What do you think is happening here?
    MffsActionForm mfform = (MffsActionForm) session.getAttribute
("mffsActionForm");
    //session.removeAttribute("mffsActionForm");
    //session.setAttribute("mffsActionForm", mfform);

    String tablename = mfform.getTables();

    httpServletRequest.setAttribute("mffsactionflag", "true");
    return actionMapping.findForward("success");

// segment 2
    HttpSession session = httpServletRequest.getSession(false);
    String flag = (String)httpServletRequest.getAttribute("mffsactionflag");
    if ((flag != null) && (flag.length() > 0)) {
        mfform = (MffsActionForm) session.getAttribute("mffsActionForm");
    } else {
        mfform = (MffsActionForm) actionForm;
    }
    String tablename = mfform.getTables();

Really, though, everything looks fine, so I'd either look elsewhere for
the problem or clean things up a little so you can make sure that you're
doing what you think you are.

If the form was in session and you're not forwarding to an action that
would reset form values, it should all be okay. I'd make sure that
whatever it is you're forwarding to isn't thinking that it needs to set
up the form.

Dave










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

Reply via email to