Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet version in NETBEANS IDE

 
Deepshan Shetty
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Can anyone help me how to change the servlet version in NETBEANS IDE?

Regards
S V Shetty
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepshan Shetty wrote:Hi

Can anyone help me how to change the servlet version in NETBEANS IDE?

I'm not sure what the question means. Do you mean you want to change the web-app version? If yes, then it has nothing to do with the IDE. It can be set in the web.xml's xsd declaration.
 
Deepshan Shetty
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok..

How do i do it in web.xml?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's an example:


which uses 2.5 version of web-app. But you should really check what version you want and then use the correct xsd declaration.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are various web.xml fragments for various servlet versions:
http://dominikdorn.com/2010/03/web-xml-web-fragment-xml-2-3-2-4-2-5-3-0/
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18014
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote:Here are various web.xml fragments for various servlet versions:
http://dominikdorn.com/2010/03/web-xml-web-fragment-xml-2-3-2-4-2-5-3-0/


Note that this isn't "NETBEANS IDE" related. NetBeans is just the development environment. What's important is the project itself. When the project goes into production, NetBeans won't be there.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic