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...

Is it possible to call servlet with parameters in the URL?

Answer Posted / muhammad farhaan

If HTML form submitted with Get request to servlet URL
which is defined in action attribute of HTML form then form
values are sent as a name value pairs appended at the end of
URL calling servlet. List of parameters is separated by ?
sign with rest of URL and paramter are append to the list of
paramter as name value pair separated by & sign. You can
manually attach the paramters as a list of name value pairs
separated by & sign at the end of query string followed by ?
sign.
The maximum length of URL changes across the browser
generally you can not send more than 255 characters long URL
string so keep in mind that when you send paramters with URL
string then whole length of URL must not be more than 255
character.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which HTTP method is non-idempotent?

1184


What is getservletcontext?

1139


How do cookies work in servlets?

1103


What is a servlet engine?

1098


What is the use of httpservletresponsewrapper?

1027


What are the steps that are required to handle the multi-threading?

1154


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

1116


What are some disadvantages of storing session state in cookies?

1074


What is the default http method in the servlet?

1349


How servlet is created?

1315


What's the advantages using servlets than using cgi?

1045


What are the disadvantages of storing session state in cookies?

1193


Differentiate between the get and post method

1119


What do you mean by deployment descriptor?

1127


How can you use a servlet to generate a plain text instead of html?

1179