You are on page 1of 1

servlet-config for every servlet in our web app, servlet- config object is created in the cont aiiner it is used

to pass information for the corres servlet hw 2 get dis obj? ServletConfig sc=getServletConfig(); String nm=sc.getInitParameter("name"); initialization parameters are defined in web.xml <servlet> <servlet-name>x</servlet-name> <servlet-class>HelloServlet</Servlet-class> <init-param> <param-name>name</param-name> <param-value>ICICI</param-value> </init-param> </servlet> ---------------------------------------------------servlet-context(application in jsp) for the entire web application, a run time rep object known as servlet-context it enable to store data at application level and used for acc common resources ServletContext ctx=getServletConfig().getServletContext(); ctx.log("accessed context");-- log events

-------------------------------------------------------<f:validateLength minimum="5" maximium="6"/> </h:inputText></TD> <TD><h:message for="userID" styleClass="RED"/></Td></TR> -------------------------------------------------------automatic validation <f:validateXXX-------<h:message for=id name of parameters style=css reference/>

You might also like