Guess you are right in a way. But I don't know how to solve this
scenario using struts..

Say I have three JSP (JSP1, JSP2 and JSP3). JSP1 populates my actionform
(AF1) and in my Action, I set it into my request (not using a session)
so that it is available to JSP2. 

In JSP2, I have yet another ActionForm to populate. Here I just want to
pass AF1, which is available in the current page (JSP2) to the next
JSP3.

Therefore I will have two actionforms in JSP2, the new actionform and
AF1 in a single form. 

Now, how do I pass both actionforms to the Action class of JSP2?

I might be asking something stupid here, but this is what I want to
achieve and I have no idea how to do it. I am new to struts.

sebastian


On Thu, 2004-08-19 at 09:59, Koon Yue Lam wrote:
> Hi !
> I don't see a good reason that you are not going to use action form.
> Since Action form is just a Java bean, which is pretty much the same
> as the "Object" that you want to pass around
> 
> and about this:
> "use an ActionForm I have to write the entities of my ActionForm into
> the JSP for it to be picked up"
> 
> If you use plain Object to pass around JSP, u still need to declare
> those object in order to use it (<bean: XX />). Which means u still
> need a Java bean in order to use it in JSP, and that's why Acton form
> is here to help u!
> 
> lastly, can u sure that your site will only has 2 page in the future?
> and won't do some validation?
> 
> hopes this help
> 
> Regards
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

Reply via email to