开发者

How do we use session to hold multiple bean object?

I want to create a simple JSP form to accept details of student. Store it in bean. Then add thi开发者_StackOverflow中文版s bean in to session. On click of display it should show as many bean I have added in session...


Bean student;// intialized with required values

session.setAttribute(student);

That should set the value of your student bean to the session

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜