Java Programming Questions
33. |
What is servlet container? |
|
A container that provides the network service over which requests and responses are sent, decode requests and formats responses. All servlet containers must support HTTP as a protocol for requests and responses but can also support additional request response protocols, such as HTTPS.
|
34. |
Can I use JavaScript in Servlets? |
|
You can included JavaScript code to the servlet response (i.e. to the generated page), but not to the servlet code itself. |
35. |
What are the types of protocols used in HTTPServlet? |
|
HTTPServlet class was developed for usage with HTTP and HTTPS protocols.
|
36. |
What is servlet mapping? |
|
Defines an association between a URL pattern and a servlet. The mapping is used to map requests to servlets. |