learn java
The moose likes Other Java Products and Servers and the fly likes web.xml vs sun-web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "web.xml vs sun-web.xml" Watch "web.xml vs sun-web.xml" New topic

web.xml vs sun-web.xml

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 807

What is the difference between those two? I know web.xml but I do not know sun-web.xml.

BLOG: http://leakfromjavaheap.blogspot.com
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

sun-web.xml is a specific configuration file for GlassFish. For example, things like context-root is defined in sun-web.xml because there is no way you can define it in web.xml.

SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Have you tried LearnNowOnline? http://www.learnnowonline.com/
subject: web.xml vs sun-web.xml