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 |
what is EJB and Java servlet
Why do we have servlet listeners?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
What is the difference between encodeRedirectUrl and encodeURL?
How can we invoke another servlet in a different application?
why we should override only no-agrs init() method.
What are the functions of the servlet container?
How to notify an object in session when session is invalidated or timed-out?
Is Servlet Class Thread safe?????? How to make servlet Thread safe ???
What is the use of servlet context?
My Question is that i am using <image> tag in my servlet and after compilation after that calling by url in my browser then images are not showing. Sometime images are showing and sometime is not showing. I am using Tomcat to run my servlets. Tell me if there any specification for image in servlets or what is solution for this ??
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify