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 |
Why jsp is better than servlet?
What is a server side include (ssi)
What are the types of ServletEngines?
In servlets, Why do we need both GET and POST method implementations?
Given the request path below, which are context path, servlet path and path info? /bookstore/education/index.html
What is meant by servlet? What are the parameters of the service method?
Can we use threads in Servlets?
Why servlet is faster than jsp?
What is a java servlet?
Hi............ When i am started the tomcat server it started. but it not load the jar files wht we deploving file.suppose we load the wapp folder in webapps. At running time it show the below error in tomcat server INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.0\web apps\wapp\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, s ection 9.7.2. Offending class: javax/servlet/Servlet.class How to slove this problem in my system. plz give answer for this problem.
What are the key methods that are involved in processing of http servlets?
How do I support both get and post from the same servlet?