Sebastian, the short answer is to set the object as a request attribute.
You would do something like the following in your action:
public ActionForward execute(...) {
Foo myFoo = FooService.getFoo();
request.setAttribute(myFoo, foo);
return mapping.findForward(success);
}
Then on the success
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
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
3 matches
Mail list logo