/    Sign up×
Community /Pin to ProfileBookmark

Java Servlet Deployment

Hey im just in the process of deploying an example java servlet and can’t figure out the relevance of the <welcome-file-list> tag from the following code:

<web-app xmlns=”http://java.sun.com/xml/ns/j2ee” version=”2.4″>

<servlet>
<servlet-name>Forwards</servlet-name>
<servlet-class>com.jspbook.Forwards</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Forwards</servlet-name>
<url-pattern>/Forwards</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>welcome.html</welcome-file>
</welcome-file-list>
</web-app>

Any ideas guys?

to post a comment
Full-stack Developer

3 Comments(s)

Copy linkTweet thisAlerts:
@buntineApr 14.2004 — A Welcome File List is an ordered list of documents which will be looked for when a user requests a directory without specifying a filename. This list often contains files like [i]index.html[/i].

Regards,

Andrew Buntine.
Copy linkTweet thisAlerts:
@ray326Apr 14.2004 — Welcome files are to a Java web container as index files are to a web server. They are a list of potential file names that will be matched as defaults when a url resolves to a directory name. They often include index.jsp, index.html, default.htm, etc.
Copy linkTweet thisAlerts:
@mooseauthorApr 14.2004 — Ah, thats a great help! Thanks a lot for clearing that up for me ?
×

Success!

Help @moose spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...