• Post Reply Bookmark Topic Watch Topic
  • New Topic

how do i know the servlet version  RSS feed

 
kiran kumar
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, how do we know the servlet version
 
Kiran Sonaje
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getMajorVersion()
and getMinorVersion() these 2 methods will tell you the vesion of servlet on which you are working
 
James Carman
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Kiran Sonaje:
getMajorVersion()
and getMinorVersion() these 2 methods will tell you the vesion of servlet on which you are working


Of course those methods are on the ServletContext interface.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!