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

How can we include static files in the jsp page?

827


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

869


Does servlet have main method?

939


Explain jsessionid?

833


Which event is fired at the time of setting, getting or removing attribute from application scope?

913


How do you run a servlet?

813


How httpservlet is different from the genericservlet?

845


What is MIME Type?

907


What is the main purpose of java servlets?

819


How can we refresh automatically when new data has entered the database?

876


What is the importance of init() method in Servlet ?

857


What do you mean by httpservlet and how it is different from the genericservlet?

782


How to upload a file to the server using servlet?

778


What is the capacity the doget can send to the server?

842


What is the GenericServlet class?

913