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

What is preinitialization of a servlet?

972


How do we call one servlet from another servlet?

980


What exception should be thrown when servlet is not properly initialized?

962


What's the advantages using servlets than using cgi?

945


Explain load on start-up and its importance?

1067


Which interface must be implemented by all servlets?

1285


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

963


Define context initialization parameters.

984


Who is responsible for writing a constructor?

1202


Why doesn’t a servlet include main()?

984


What is a servlet context object?

1092


Explain the difference between get and post method in servlet?

1077


What are session variable in servlets?

979


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

1084


How can we upload the file to the server using servlet?

1001