javax.servlet Code Samples
- How do I get servlet request URL information?
- How do I get web application context path?
- How do I read text file in Servlet?
- How do I get a spring's bean from a servlet?
- How do I create a HelloWorld Servlet?
- How do I get client IP and hostname in Servlet?
- How do I invalidate user's session?
- How do I read servlet context initilization parameters?
- How do I count number of online users?
- How do I get parameter names from servlet request?
- How do I create a hit counter servlet?
- How do I read request parameter from servlet?
- How do I get servlet request headers information?
- How do I send a response status in servlet?
Page 1 of 2 |
Prev
|
Next
How do I read servlet init parameter?
When configuring a servlet in the web.xml file we can define some init parameter in the servlet configuration section. This init parameter can be used for instance where a configuration file of our application is stored. This simple servlet show how to obtains these parameters value.