java - How can I pass an ArrayList from one servlet another? -


i have sent arraylist1 1 servlet another. works. want pass arraylist2 jsp/servlet, error: java.util.nullpointer exception. how can resolve this?

requestdispatcher disp2 = request.getrequestdispatcher("newservlet.java");  

should

requestdispatcher disp2 = request.getrequestdispatcher(pathtoyourservlet);  

the path end of page adress: http://localhost/yourapp/pathtoyourservlet


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -