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.
精彩评论