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 are the steps that are required to handle the multi-threading?

591


How do you invoke a servelt?

618


How can we upload the file to the server using servlet?

539


What’s the difference between genericservlet and httpservlet?

526


What is load-on-startup in servlet?

580






What are the differences between forward() method and sendredirect() methods?

543


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

611


What methods do you use in servlet - applet communication?

580


Why do we use sendredirect() method?

544


How the JSP file will be executed on the Server side?

640


What are the exceptions thrown by servlets? Why?

618


What must be implemented by all servlets?

572


What is servlet name in web xml?

547


Why is a constructor needed in a servlet even if we use the init method?

600


Can we refresh servlet in client and server side automatically?

589