Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-27-2007, 05:51 PM
Member
 
Join Date: Jun 2007
Posts: 95
Felissa is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-27-2007, 06:08 PM
Member
 
Join Date: Jun 2007
Posts: 92
Marcus is on a distinguished road
RE: Web.xml
Tag continues existing, I send the code:

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>
Marcus
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-27-2007, 06:26 PM
Member
 
Join Date: Jun 2007
Posts: 92
Daniel is on a distinguished road
This number represents the order in which it is going to make instance the servlet, if you have a lot of servlets then the one that has the smaller value load in memory first.

If you enter negatives numbers so is like if you don't have the tag in the servlet.

Daniel
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 08:51 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org