Results 1 to 3 of 3
Thread: Web.xml
- 06-27-2007, 04:51 PM #1
Member
- Join Date
- Jun 2007
- Posts
- 95
- Rep Power
- 0
Web.xml
I have a doubt with respect the las specifications of the format that must have web.xml for specification J2EE 1.4.2 with the java.sun.com/xml/ns/j2ee/web-app_2_4e.xsd scheme
For the specification with I worked in WSAD 5.1 the validador document was a DTD and if I needed to initiate servlet from the container it should to put a tag called load-on-startup. The small detail is that in this scheme that tag does not exist. If you know how can I do that I t would thank.
Felissa:p
- 06-27-2007, 05:08 PM #2
Member
- Join Date
- Jun 2007
- Posts
- 92
- Rep Power
- 0
RE: Web.xml
Tag continues existing, I send the code:
Marcus:cool:Java Code:<?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.4" 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 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>Test</display-name> <servlet> <description></description> <display-name>Test</display-name> <servlet-name>Test</servlet-name> <servlet-class>Test</servlet-class> <load-on-startup>-1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Test</servlet-name> <url-pattern>/Test</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
- 06-27-2007, 05:26 PM #3
Member
- Join Date
- Jun 2007
- Posts
- 91
- Rep Power
- 0


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks