Can a servlet be called by passing its name as a parameter
in the URL?
No, it cannot be done.We use deployment descriptors as
writtne in web.xml file which is used to identify a servlet.
servlet name, servlet class and url-pattern are specified
in the web.xml file which will find the url-pattern and
identify the servlet associated with in
| Is This Answer Correct ? | 8 Yes | 2 No |
What are some advantages of storing session state in cookies?
Can servlet have a constructor ?
What is servlet context ?
What must be implemented by all servlets?
What are the kinds of http requests?
What are different Authentication options available in Servlets.
Can we override servlet service method?
What is load-on-startup in servlet?
why we should override only no-agrs init() method.
Can we write a constructor for a Servlet class ? if yes how ? if no why not ?
How will you pass values from HTML page to the servlet?
how the jsp page can be regenerated?