dcsimg
How do i pass a value from ActionClass to ActionForm
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, March 11, 2005 12:26 PM


			

page1.jsp ->
ActionForm form1
Action act1
page2.jsp ->
ActionForm form2
Action act2

I have to pass a variable from 'act1' (say id) to 'form2' for database activity. How do i do it.

In 'act1' I tried to Cast the 'form2' so that I can setId , but it gives ClassCastingException
Adavance Thanks Ya. !

Re: How do i pass a value from ActionClass to ActionForm

Posted By:   WarnerJan_Veldhuis  
Posted On:   Friday, March 11, 2005 12:35 PM

Try to make an action that initializes the new form. What I do is a construction like this:


InitAction -> Form -> FinalAction




act1 will forward to some InitAct2Action. In InitAct2Action, you use the same form as Act2Action. When that is finished, you'll forward to the jsp that holds the form...
About | Sitemap | Contact