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 |
Is it good idea to create servlet constructor?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
What is servlet and its advantages?
How httpservlet is different from the genericservlet?
What is difference between jsp and servlet?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
give the syntax of doGet() and doPost()?
without session Id can we do any operations like add,update,edit,delete. I saw Session id is loaded for edit and delete action not for add .so am asking this
What are the methods in HttpServlet?
What is servlet in simple terms?
What is the use of java servlet api?
What are the types of protocols supported by httpservlet ?