• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xml

 
Iris Gutierrez
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I refer to is the xml you have to configure when you program a web just with java, I would like to know the exact meaning of tags such as

<?xml version="1.0" encoding="UTF-8"?>
<web-app 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>SL-314 WebApp Example</display-name>
<description>
This Web Application demonstrates a single View servlet.
</description>

<servlet>
<servlet-name>ListLeagues</servlet-name>
<servlet-class>java.sl314.view.ListLeaguesServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>ListLeagues</servlet-name>
<url-pattern>/list_leagues.view</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>

</web-app>

and if there are more tags to configure the file you find in the WEB-INF folwder. I am just a beginner.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Servlet specification is the ultimate reference for this. See http://faq.javaranch.com/java/SpecificationUrls for where to find it.

Most of those are also described in an easier-to-deal-with form at http://e-docs.bea.com/wls/docs61/webapp/web_xml.html

I'll move this to the servlet forum, where any discussion of this is more appropriate.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65122
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Using a title of "xml" isn't very descriptive.

Please go back and change your post to add a more meaningful subject by clicking the .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic