• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not getiing web.xml in latest netbeans ide

 
Prateek Mishra
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34229
341
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Pyla Rao
Ranch Hand
Posts: 51
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all, i got it now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic