init-param and context-param

前端 未结 5 1417
说谎
说谎 2020-12-02 04:29

What is the difference between and !?

5条回答
  •  醉话见心
    2020-12-02 05:14

    What is the difference between and !?

    Single servlet versus multiple servlets.

    Other Answers give details, but here is the summary:

    A web app, that is, a “context”, is made up of one or more servlets.

    • defines a value available to a single specific servlet within a context.
    • defines a value available to all the servlets within a context.

提交回复
热议问题