Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJWCD
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Certification
»
Web Component Certification (OCEJWCD)
web.xml
Gowher Naik
,
Ranch Hand
Nov 22, 2006 04:45:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Hi
During my preparation i have collected all web.xml tags present in HFS&
JSP
and i my posting all those tags.
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <!--*******Servlet Mapping Tag with init param*******--> <servlet> <servlet-name>testing</servlet-name> <servlet-class>app2.com.web.ELTesting</servlet-class> <load-on-startup>1</load-on-startup> <init-param> <param-name>admin</param-name> <param-value>gowher</param-value> </init-param> <init-param> <param-name>application</param-name> <param-value>SCWCD</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>testing</servlet-name> <url-pattern>/eltest.do</url-pattern> </servlet-mapping> <!--*******Servlet Mapping for jsp file*********--> <servlet> <servlet-name>jsp mapping</servlet-name> <jsp-file>/MyJsp.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>jsp mapping</servlet-name> <url-pattern>/jspMapping.do</url-pattern> </servlet-mapping> <!--****listener tag*********************--> <listener> <listener-class>pack.MyListener</listener-class> </listener> <!--*******session timeout tag***********--> <session-config> <session-timeout>20(in minutes)</session-timeout> </session-config> <!--*******scripting invalide and el-ignored tag******--> <jsp-config> <taglib> <taglib-uri>uri</taglib-uri> <taglib-location>/WEB-INF/myTag.tld</taglib-location> </taglib> <jsp-property-group> <url-pattern>*.jsp</url-pattern> <scripting-invalide>true</scripting-invalide> <el-ignored>true</el-ignored> </jsp-property-group> </jsp-config> <!--******error page tag***********************--> <error-page> <exception-type>java.lang.Throwable<exception-type> <location>/ErrorPage.jsp</location> </error-page> <!--******EJB tags********************************--> <ejb-local-ref> <ejb-ref-name></ejb-ref-name> <ejb-ref-type></ejb-ref-type> <local-home></local-home> <local></local> </ejb-local-ref> <ejb-ref> <ejb-ref-name></ejb-ref-name> <ejb-ref-type></ejb-ref-type> <home></home> <remote></remote> <!--************JNDI tags*****************************--> <env-entry> <env-entry-name>myenv</env-entry-name> <env-entry-type>java.lang.Integer</env-entry-type> <env-entry-value>8</env-entry-value> </env-entry> <!--**********MIME mapping tags*********************--> <mime-mapping> <extention>mpg</extention> <type>video/mpeg</type> </mime-mapping> </ejb-ref> <!--**********security tags**************************--> <login-config> <auth-method>BASIC/DIGEST/CLIENT-CERT/FORM</auth-method> <form-login-config> <form-login-page>/login.html</form-login-page> <form-error-page>/error.html</form-error-page> </form-login-config> </login-config> <security-role> <role-name>admin</role-name> <role-name>member</role-name> </security-role> <security-constraint> <web-resource-collection> <web-resource-name>AppName</web-resource-name> <url-pattern>/myApp/*</url-pattern> <url-pattern>/myapp/myfolder/*</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> </web-resource-collection> <auth-constraint> <role-name>admin</role-name> <role-name>member</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> <servlet> <security-role-ref> <role-name></role-name> <role-link></role-link> </security-role-ref> </servlet> <!--*******************filter tags*****************--> <filter> <filter-name>Filter Test</filter-name> <filter-class>pack.Myfilter</filter-class> </filter> <filter-mapping> <filter-name>Filter Test</filter-name> <url-pattern>*.do</url-pattern> OR <servlet-name>name inside <servlet-name> tag which is inside <servlet> tag</servlet-name> <dispatcher>REQUEST/INCLUDE/FORWARD/ERROR</dispatcher> </filter-mapping> </web-app>
Thanks
Arvind Giri
,
Ranch Hand
Nov 22, 2006 05:06:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Good job gowher
Its really nice to see all tags in one go.
Celinio Fernandes
,
Ranch Hand
Nov 22, 2006 05:30:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
It is
<scripting-invalid>true</scripting-invalid>
Not
<scripting-invalide>true</scripting-invalide>
It is
<security-role><role-name>admin</role-name> </security-role> <security-role><role-name>member</role-name> </security-role>
Not
<security-role> <role-name>admin</role-name> <role-name>member</role-name> </security-role>
There is an errata for that mistake.
Also I think
you should
add more details to it.
[ November 22, 2006: Message edited by: Max Fernandes ]
Siddharth Purandare
,
Ranch Hand
Nov 22, 2006 05:31:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Hey,
Thanks for such a wonderful Post. But we can get the entire list in Hanumat Singh's Study kit Book. Anyways thanks for your help to fellow Ranchers.
Celinio Fernandes
,
Ranch Hand
Nov 22, 2006 09:10:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
by the way, do you have the equivalent for the tags in a TLD file ?
Chethan Verma
,
Greenhorn
Nov 22, 2006 19:36:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Hi gowher,
Good job.
There is a small change.
<!--**********MIME mapping tags*********************-->
<mime-mapping>
<extention>mpg</extention>
<mime-type>video/mpeg</mime-type>
</mime-mapping>
Post by:
autobot
Could you hold this kitten for a sec? I need to adjust this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
This thread has been viewed 978 times.
Similar Threads
web.xml hard work
Sample web.xml.. may be useful for SCWCD Ranchers
web.xml
Not able to use Struts Taglibs
ELEMENT init-param(param-name, param-value, description?
More...
All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:01:02
.