It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be re开发者_StackOverflowopened, visit the help center.
Closed 11 years ago.
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.
精彩评论