how to pass parameter from servlet to html form

Answer Posted / sachin s

You can also use HtppSessio, create a new session variable
and set the value and get the same value in HTML. However
this should be avoided if you want to pass to many
parameters.

Also,remember that Session variable should be flushed off
after the use, thats a good practise.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Whether thread can be used in servlets?

944


What is http servlet?

793


How we can get ip address of client in servlet?

741


What are different ways for authentication of servlet?

730


How a servlet is unloaded?

802


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

777


What’s the difference between genericservlet and httpservlet?

736


What are the steps involved in placing a servlet within a package?

831


How to get the actual path of servlet in server?

965


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

778


What is ServletContext object?

841


hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code

2516


What are session variable in servlets?

766


Describe in brief RequestDespatcher?

834


Difference between GET and POST?

902