• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet call the method from one servlet to another servlet

 
rex tony
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
servlet Class ABC Can call the another display() of the Servlet Class DEF

[code]

Servlet ABC Servlet DEF

Display1()
Display2() -Display2() can call from the servlet DEF-----> Display2()
Display3()
[\code]
If so,How?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. If you have common functionality between servlets, you should factor that out into its own class which can then be called from all servlets.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic