Struts1 - Passing objects between servlets and jsp [closed]
What is the best way to pass objects between servlets and JSP when using Struts1? Help needed.
Just put the objects in your ActionForm
and define getters for them, or put them in request attributes directly.
In the JSP, use ${myActionForm.myObject}
of ${myAttributeName}
(respectively) to get the object.
Set the object as an attribute on the session or request.
精彩评论