Hi,                                                                                   
              
        Can anyone send me a solution for the following problem:                       
              
 From two jsps, I am coming to the same action class. (in the first jsp, I have a 
link, clicking on  
 this will go to an action say MyAction. From the second jsp also, I can goto the same 
action        
 MyAction). In the MyAction class, how do I write code to return to the parent page 
when error       
 occurs. (I am catching error using ActionErrors)                                      
              
 <action                                                                               
              
   path          = "/MyAction"                                                         
              
   type = "mypackage.MyAction"                                                         
              
   name = "myFormBean"                                                                 
              
   scope         = "session">                                                          
              
   <forward name="success" path="/pages/Result.jsp" />                                 
              
 </action>                                                                             
              
                                                                                       
              
                                                                                       
              
                                                                                       
              
 Here, if the forward is success, i am able to got Result.jsp. But if any error is 
there, how do I   
 display the error in the parent page? (I can come to this action from two different 
parent page)    
 Please advise.                                                                        
              
                                                                                       
              
                                                                                       
              
 Thanks,                                                                               
              
                                                                                       
              
                                                                                       
              
 Pramod                                                                                
              
                                                                                       
              
                                                                                       
              
                                                                                       
              
                                                                                       
              






********************************************
This  electronic  mail  message  is  intended  solely  for  the  named  recipients  
and  may contain
confidential  and  proprietary  business information of eFunds Corporation and all its 
subsidiaries.
If  you  are  not a named recipient, please notify the sender immediately.  You may 
not disclose the
contents  to  any  other  person;  use  this  electronic  mail message or its contents 
for any other
purpose; or further store or copy its contents in any medium
********************************************


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

Reply via email to