form bean reference....

2002-04-10 Thread timothy

Hi all expert, 

i want to access this formBean (ResultForm) from other Action
how can i get the reference

actionpath=/result
   type=ui.result.ResultAction
   name=ResultForm
  scope=session
  input=result.jsp
  
/action

it did try this, but it does not work any idea

 HttpSession session = request.getSession(true);
 ResultForm resultForm = (ResultForm)session.getAttribute(ResultForm);


From Timothy


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




Re: form bean reference....

2002-04-10 Thread timothy

i want to fill some information to other formbean

and forward the page to that JSP

eg.  JSP1--Action1- set some data to formBean2-forward to JSP2

so JSP2 can display my new value that set by action1


- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, April 11, 2002 12:59 PM
Subject: RE: form bean reference


 What exactly are you trying to do?

 Are you trying to forward from one action class to another?

 JM



  -Original Message-
  From: timothy [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, April 10, 2002 11:29 PM
  To: [EMAIL PROTECTED]
  Subject: form bean reference
 
 
  Hi all expert,
 
  i want to access this formBean (ResultForm) from other Action
  how can i get the reference
 
  actionpath=/result
 type=ui.result.ResultAction
 name=ResultForm
scope=session
input=result.jsp

  /action
 
  it did try this, but it does not work any idea
 
   HttpSession session = request.getSession(true);
   ResultForm resultForm = (ResultForm)session.getAttribute(ResultForm);
 
 
  From Timothy
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 

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



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