• Post Reply Bookmark Topic Watch Topic
  • New Topic

static block inside servlet

 
eugene malcolumn
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i have to write above code inside servlet where can i write??
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35540
402
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure I understand the question. A static method can go anywhere within in a class except in another method.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65417
100
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And why would this need to be part of a servlet? 
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!