Punitha, Your href in Step 1 doesn't include a package in the path which makes it look like both Controllers are in the same package which isn't allowed and shouldn't compile. I'm guessing that you left out that information.
Now, to your problem, do you know for *certain* that the begin method is not called or are you guessing that it isn't called because the list box value isn't set? Could you send me a very simple but complete example? - john -----Original Message----- From: Punitha_N [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 7:50 PM To: Beehive Users Subject: RE: PageFlowController's begin method is not always called. hi john I have PageA.jsp & PageAController.jpf PageB.jsp & PageBController.jpf STEP 1 : ----------- In PageA.jsp , i have a anchor like this.... <netui:anchor href="PageBController.jpf"> another page flow </netui:anchor> I click this link to go to PageB.jsp . At this time , begin() method of PageBController.jpf is executed and it works fine. STEP 2: ------------ In PageB.jsp , i have list box and a submit button . Default value of List box is set as follows :::: In the begin() method of PageBController.jpf , i set the default value for the list box in the request object. Now I select a value from the list and click the submit button to go to PageA.jsp. On click of Submit button, the following action is called /** * @jpf:action * @jpf:forward name="success" path="../PageA/begin.do" * @jpf:forward name="noSession" path="../noSession.jsp" */ protected Forward updatePersonValue(UpdatePersonValueForm form) { // code to manipulate the values } after executing the above action method, PageA.jsp is loaded. PROBLEM : --------------- now the pbm is , when i click the link in PageA.jsp to go to PageB.jsp ( for the second time ) , PageB.jsp is loaded without executing the begin() method of PageBController.jpf . I want the value ( selected in STEP 2 ) to be defaulted in the list box ( in PageB.jsp ) ...but now it just displays the old value . I have written code in begin() method to set the new value to the request attribute. Since the begin() method is not executed, the old value shows up in the screen. I think i didnt confuse u much :( .... please let me know what mistake i did. Thanks in advance Regards Punitha -----Original Message----- From: John Rohrlich [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 12:30 AM To: Beehive Users Subject: RE: PageFlowController's begin method is not always called. Punitha, Not sure what you mean by "go to anther controller". You can address another Controller by hitting Controller.jpf of the other page flow (assuming that is the name of the Controller file of the other page flow). For example, an anchor on a page of the root page flow with context root "myPageFlow" would provide access to another page flow like this: <netui:anchor href="/myPageFlow/anotherPageFlow/Controller.jpf"> another page flow </netui:anchor> I hope I understand your question correctly. - john -----Original Message----- From: Punitha_N [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 3:42 AM To: [email protected] Subject: PageFlowController's begin method is not always called. Hi When i select a jsp page in a controller and go to anther controller , the begin() method of the second controller is not called. The second controller just loads the another jsp page. I want the begin() method of second controller to be called before the particular jsp is loaded. Please let me know how to resolve this. Thanks in advance. Punitha
