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

If servlet receives multiple requests, how many objects will it create?

824


What is getservletcontext?

546


What is java servlet?

604


What are the important functions of filters?

594


How do servlets work?

532






What is a servlet-to-servlet communcation?

644


Can we fetch the attributes related to a servlet on a different servlet?

626


What are the phases of servlet life cycle?

603


Which httpsession object is used to view and manipulate information about a session?

727


List out the difference between ServletConfig and ServletContext?

598


What is the difference between portlet and servlet?

508


What is session tracking?

696


Why is http protocol called as a stateless protocol?

533


What is the use of servlet wrapper classes?

664


How to get the actual path of servlet in server?

728