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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / ravikiran.chd

yes...those parameters can be accessible with
request.getParameter() or request.getParameterValues()

Is This Answer Correct ?    6 Yes 0 No

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

Answer / joak

yes, is posible.

Is This Answer Correct ?    5 Yes 1 No

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

Answer / gg

can i call parameters value if it Arabic Words i call it but
get unreadable text

thank

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Servlets Interview Questions

What does the term localization refer to?

1 Answers  


When Servlet is unloaded?

1 Answers  


How to prevent browser from caching the page content?

1 Answers  


what is EJB and Java servlet

2 Answers  


what is the control flow in servlet when we send a request?

5 Answers   TCS,


What is ServletConfig object?

1 Answers  


How do you define a servlet?

1 Answers  


when the webcontainer creates ServeletConfig,ServletContext objects? befoure creating the Servlet object or not?

4 Answers   TCS,


Is tomcat a servlet container?

1 Answers  


What are the different methods involved in the process of session management in servlets?

1 Answers  


What is a cookie What is the difference between session and cookie

1 Answers  


How we can call a jsp from the servlet?

1 Answers  


Categories