I have the following struts-config file, TWO ACTIONS WITH SAME FORM BEAN

<action    path="/reviewTeam"
                           type="com.sasken.erp.sdlc.action.ReviewTeamLoadAction"
                           name="reviewTeamForm"
                           scope="request"
                       validate="false">
                  <forward name="success"   path="/jsp/ReviewTeam.jsp"/>
                  <forward name="editReviewTeam"   path="/editReviewTeam.do"/>
    </action>
     <action    path="/editReviewTeam"
                               type="com.sasken.erp.sdlc.action.ReviewTeamAction"
                               name="reviewTeamForm"
                               scope="request"
                           validate="false">
                      <forward name="success"   path="/jsp/ReviewTeam.jsp" />
    </action>

In TheReviewTeamLoadAction i check if the user wants to "Edit" a record. If he does i 
do this
return (mapping.findForward("editReviewTeam"));

This leads me to ReviewTeamAction

Here i prepopulate the record to be edited, some thing like this

form = new ReviewTeamForm();
  if ("request".equals(mapping.getScope()))
            request.setAttribute(mapping.getAttribute(), form);
        else
            session.setAttribute(mapping.getAttribute(), form);
        ReviewTeamForm reviewTeamForm = (ReviewTeamForm)form;
        reviewTeamForm.setOverview_dt("10 pm");

But when i forward to my JSP the the following does not show the prepopulated value

<html:text property="overview_dt"/>

ALSO STRANGELY THE FORM IN MY ReviewTeamAction IS NOT NULL, THE FIRST TIME WHEN I COME 
TO THIS ACTION FROM THE PREVIOUS ACTION
ReviewTeamLoadAction.

Can someone point the Problem here

Deepank

Reply via email to