JoshKumar87 0 Newbie Poster

Hello,

Can anyone please tell me how to get the arraylist in servlet? Using dao layer, I have connected to database and got the arraylist values. Now I need to pass it to Servlet through service layer. How to use that request.setAttribute in Servlet and how to redirect that arraylist to jsp?

I tried with an example first given in the below link:
http://www.java-tips.org/java-ee-tips/javaserver-pages/how-to-forward-requests-from-servlet-t.html

But I am getting 404 error code. Can anyone please give me suggestions as how to resolve it?

Thanks in advance!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.