开发者

how can i pass more than one array list from single servlet to two more jsp or servlets?

i want to pass one arraylist for one jsp and another one arraylist for another one servlet from same servlet . i have already sent that first arraylist to servlet to jsp it works.but i want to se开发者_开发技巧nt another one arraylist to another servlet, am using same code syntax but it doesn't works? what can i do?


What do you mean when you say that you pass array list from servlet to jsp? If you are forwarding or redirecting HTTP request you can pass as many parameters as you wish using HTTP session attributes.


From my guess, I belive what you are looking for is the MVC pattern for passing you model (List) to view (JSP). Here is the best example I found with google of how to use MVC with JSP

If you have problem with adopting the code to work with yours, please give me explanation of what the problem is and what codes or error messages look like. It will be more helpful to those who try to help.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜