This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See are a few rules that need to be followed, and one is that proper names are
required. Please take a look at the
JavaRanch Naming Policy and
adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here
Posts: 42975
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use reflection to find out if the class implements the javax.servlet.Servlet interface. Note that it is possible that an ordinary Java class (which is used outside of a servlet container) also implements this interface, so this test may not be foolproof for your purposes. That would be a pathological cse, though.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!