User Tools

Site Tools


java:webxml

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
java:webxml [2011/06/14 15:35]
rlunaro creado
java:webxml [2014/12/24 10:42] (current)
Line 1: Line 1:
 +====== The intrinsincs of web.xml ======
 +
 +I've messing around searching for someone who explains me clearly the intrinsics
 +of the configuration of the web.xml file and finally I've found something ​
 +in a manual from oracle: ​
 +
 +http://​download.oracle.com/​docs/​cd/​E13222_01/​wls/​docs70/​webapp/​webappdeployment.htm
 +
 +I attach here for the sake of not loose it: 
 +
 +{{:​java:​webapp.pdf}}
 +
 +And I don't want to loose the opportunity to to comment one thing: the issue of the
 +context parameters.
 +
 +===== What Context Parameters Are =====
 +
 +Context Parameters are this: parameters that the application --or a library, also 
 +known these days as **framework**-- can read from the ''​web.xml''​ file. 
 +
 +Here is the syntax to define a context parameter: ​
 +
 +<code xml>
 +  <​context-param>​
 +  ​
 +     <​param-name>​user-defined parameter name</​param-name>​
 +     <​param-value>​user-defined parameter value</​param-value>​
 +     <​description>​optional description,​ just text</​description>​
 +     
 +  </​context-param>​
 +  ​
 +</​code>​
 +
 +
 +How can them be read: 
 +
 +<code java>
 +
 +javax.servlet.ServletContext.getInitParameter()
 +javax.servlet.ServletContext.getInitParameterNames()
 +
 +</​code>​
 +
 +
 +
 +
  
java/webxml.txt ยท Last modified: 2014/12/24 10:42 (external edit)