Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet version in NETBEANS IDE  RSS feed

 
Deepshan Shetty
Ranch Hand
Posts: 41
  • 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
Sheriff
Posts: 10447
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: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok..

How do i do it in web.xml?
 
Jaikiran Pai
Sheriff
Posts: 10447
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: 5856
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
Bartender
Posts: 18531
61
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
Boost this thread!