Is it possible to call servlet with parameters in the URL?
Answers were Sorted based on User's Feedback
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 |
Answer / ravikiran.chd
yes...those parameters can be accessible with
request.getParameter() or request.getParameterValues()
Is This Answer Correct ? | 6 Yes | 0 No |
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 |
i have class files in class folder. but i have no java files. but i want to modify the java files which are related to class files . how ?
What is SingleThreadModel interface?
What is meant by session? Tell me something about httpsession class?
What is cgi and what are its drawbacks?
HTTP tunneling means what?
Is classes folder is compulsory in web-inf/ even though u r deploying ur application with war file?
What is a servlet context object?
can i call destroy() method in init() method of servlet
Why servlet is used as controller ? Not JSP? I want complete explation?
Can we write a constructor for a Servlet class ? if yes how ? if no why not ?
What is servlet api used for conneting database?
How do you communicate in between Applets and Servlets?