Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How values can be passed from HTML page to servlet?

Answer Posted / dadhich

we can pass the values to servlet through from HTML Page as follows:-
create a form --> define <form action=Ser>

where Ser is a servlet java class in which we want to retrieve the value.in web-xml in <servlet> tag class name will be defined.

In Ser.java we can retrieve the value by writing as follows:

String login=request.getParameter("login");

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between get and post?

1158


What is the difference between a generic servlet and http servlet?

989


What is a servlet?

1135


What exactly is a servlet?

1001


Can filter be used as request or response?

959


What is servlet collaboration?

1141


When should you prefer to use doget() over dopost()?

1147


What are the jobs performed by servlets?

1071


What is the use of request dispatcher interface?

1004


How do you design microservices?

1072


What is a servlet engine?

1030


What are different ways for servlet authentication?

1098


What exactly are the functions of servlet?

1095


What is cgi and what are its drawbacks?

1059


What’s the difference between forward() and sendredirect() methods?

1006