How do you pass the data from one servlet to another
servlet?

Answer Posted / abilash

also we can set data in the request too

request.setAttribute("variableName"object);

we can get the value in the next servlet by

Object obj = request.getAttribute("variableName");

Is This Answer Correct ?    24 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many objects of a servlet is created?

873


Which java application server is the best?

649


What is string tokenizer?

704


Whether thread can be used in servlets?

826


Is it possible to have a constructor inside the servlet?

634






What is difference between cookies and httpsession?

640


What is the process for chaining servlet?

685


How does Cookies work in Servlets?

747


What are Servlets?

698


Tell us something about servletcontext interface.

696


How can we implement a jsp page?

723


What's the difference between servlets and applets?

642


What do you mean by cgi in servlet?

714


Explain web application directory arrangement?

674


What is the use of send redirect () method?

665