How servlet controller know which method to use?

Jamil Tang

I'm new to servlet. I have a question that when you give a request , how do servlet controller know which function inside it should it use? (i.e. there are two function ,1. get export a report file and 2. display it only)

I know that there need to be a jsp with baseurl link to it with ajax but I have no idea why it knows to choose which function

Adeel Ansari

Since, you're new to Servlet, I would suggest, don't confuse yourself with AJAX and all other things -- How do you eat an elephant? of course, one bite at a time. So, Read Servlet Lifecycle, try to understand that first; then go bit by bit from there.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How does this model factory know which method to use?

From Dev

How does this model factory know which method to use?

From Dev

How to know which controller method will be called from Web API Authorization filter

From Dev

How do I know which view is associated with which controller?

From Dev

How to know when a method finish in controller

From Dev

How to know when a method finish in controller

From Dev

How does Java 8 know which String::compareTo method reference to use when sorting?

From Dev

How Java know which method should be override when use lambda expression

From Dev

Android - How to know which USB interface to use?

From Dev

How does SSH know which key to use?

From Dev

How to know which layout qualifier to use?

From Dev

How to know which packages are not in use and can be unistalled?

From Dev

How to test a method which is passed to a directive controller

From Dev

How use method 'truncate' in controller?

From Dev

how to know which method is calling other method in javascript

From Dev

How exactly does a .net MVC controller know which View() to return?

From Dev

How to know which was my previous tab bar view controller in iOS?

From Dev

How can I know in the controller which partial view made a callback

From Dev

how to check which graphic controller is in use

From Dev

Threads: How do I know which thread a method runs in?

From Dev

How to create method which will know that its instance is in matrix of another class

From Dev

How to know, which child are called static parent method?

From Dev

Ruby. How to know which class instance method is defined?

From Dev

How do I know which authorisation method git server uses?

From Dev

How do I know which button does this method correspond to?

From Dev

How to use controller method from lib with Rails?

From Dev

How does spring know which view resolver to use?

From Dev

How to know which cuDNN version one should use?

From Dev

At runtime, how does Swift know which implementation to use?

Related Related

  1. 1

    How does this model factory know which method to use?

  2. 2

    How does this model factory know which method to use?

  3. 3

    How to know which controller method will be called from Web API Authorization filter

  4. 4

    How do I know which view is associated with which controller?

  5. 5

    How to know when a method finish in controller

  6. 6

    How to know when a method finish in controller

  7. 7

    How does Java 8 know which String::compareTo method reference to use when sorting?

  8. 8

    How Java know which method should be override when use lambda expression

  9. 9

    Android - How to know which USB interface to use?

  10. 10

    How does SSH know which key to use?

  11. 11

    How to know which layout qualifier to use?

  12. 12

    How to know which packages are not in use and can be unistalled?

  13. 13

    How to test a method which is passed to a directive controller

  14. 14

    How use method 'truncate' in controller?

  15. 15

    how to know which method is calling other method in javascript

  16. 16

    How exactly does a .net MVC controller know which View() to return?

  17. 17

    How to know which was my previous tab bar view controller in iOS?

  18. 18

    How can I know in the controller which partial view made a callback

  19. 19

    how to check which graphic controller is in use

  20. 20

    Threads: How do I know which thread a method runs in?

  21. 21

    How to create method which will know that its instance is in matrix of another class

  22. 22

    How to know, which child are called static parent method?

  23. 23

    Ruby. How to know which class instance method is defined?

  24. 24

    How do I know which authorisation method git server uses?

  25. 25

    How do I know which button does this method correspond to?

  26. 26

    How to use controller method from lib with Rails?

  27. 27

    How does spring know which view resolver to use?

  28. 28

    How to know which cuDNN version one should use?

  29. 29

    At runtime, how does Swift know which implementation to use?

HotTag

Archive