how to pass parameter from servlet to html form

Answer Posted / amit ghosh

its simple... use request diapatcher

RequestDispatcher rd = request.getRequestDispatch("url?
newparam=newvalue");
rd.forward(request, response);

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the need of servlet filters?

752


What is a servlet context?

835


What is Servlets and explain the advantages of Servlet life cycle?

823


Given the request path below, which are context path, servlet path and path info?

775


How to read request headers from servlets?

817


What is a web application and what is it’s directory structure?

832


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

771


What do you mean by httpservlet?

771


Why HttpServlet class is declared abstract?

888


Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

1008


What is the element?

799


What is the use of servlet wrapper classes?

905


Why is servlet used?

914


What are the steps that are involved in using the httpservlet class?

853


What is servlet and its life cycle?

859