how to pass parameter from servlet to html form

Answer Posted / haneef

By the Hidden form fields..

we can set the name and values here

<input type="hidden" name="uName" value="xxx" />

this way, u can send u r parameters to html

(or) by cookies
Cookie c1=new Cookie("uName","xxx");
response.addCookie(c1);

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet name in web xml?

768


How can we achieve transport layer security for our web application?

788


how many jsp scripting elements are there and what are those?

795


Can filter be used as request or response?

738


What are the supporting protocol by HttpServlet ?

871


How are filters?

803


Explain the concept of ssi ?

804


How will you pass values from HTML page to the servlet?

782


What are the different ways we can maintain state between requests?

785


Write a program to show the functionality of doget and dopost method?

893


What do you mean by interservlet communication?

791


What is pure servlet?

926


What is servlet container. how it works?

886


Which method of the httpservletrequest object is used?

778


What are some disadvantages of storing session state in cookies?

797