File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "xml" Watch "xml" New topic
Author

xml

Iris Gutierrez
Greenhorn

Joined: Sep 02, 2008
Posts: 5
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
Marshal

Joined: Mar 22, 2005
Posts: 39542
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

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 .


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: xml
 
Similar Threads
Tomcat Set
404 -file not found
Websphere has a BIG BUG!!!
web.xml change not working
jstl problem in Spring MVC