开发者

Struts1 - Passing objects between servlets and jsp [closed]

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜