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 succ
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 Ac
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 pic
hi
1. If I need to make an object in a JSP to be available to the next JSP
(which is forwarded by my Action), how do I do that without using an
ActionForm?
The reason I am asking this is that to use an ActionForm I have to write
the entities of my ActionForm into the JSP for it to be picked up,
4 matches
Mail list logo