aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Not getiing web.xml in latest netbeans ide Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Not getiing web.xml in latest netbeans ide" Watch "Not getiing web.xml in latest netbeans ide" New topic
Author

Not getiing web.xml in latest netbeans ide

Prateek Mishra
Greenhorn

Joined: Jul 18, 2012
Posts: 5
On creating a web application project i couldn't find any web.xml file in the latest netbeans IDE 7.1.2.
Is there any way to make it happen. Please help.

Note: Not sure whether i should post it in the servlets section or Net Beans, I request the moderator please move it to the appropriate section if necessary.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31067
    
232

This forum is the best place since it is an IDEs question. While I'm not an expert with NetBeans, I've noticed it doesn't always show all files in the IDE. Is it possible the file is there on the filesystem and the IDE view just isn't showing it?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

In the most recent servlet spec the web.xml is optional. Perhaps if you chose an earlier spec number when creating your project it would show up. And besides, you can always create one yourself (there is nothing "magic" about the one that the IDE creates).


JBoss In Action
Pyla Rao
Ranch Hand

Joined: Jul 10, 2012
Posts: 50
Web.xml is optional in netbeans java web project,but we can add it.
In netbeans project hierarchy right click on web-inf folder choose standard deployment descriptor(web.xml) from list.

thanks,
Pyla.
Prateek Mishra
Greenhorn

Joined: Jul 18, 2012
Posts: 5
Thanks to all, i got it now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not getiing web.xml in latest netbeans ide