This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlet call the method from one servlet to another servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet call the method from one servlet to another servlet" Watch "servlet call the method from one servlet to another servlet" New topic
Author

servlet call the method from one servlet to another servlet

rex tony
Ranch Hand

Joined: Aug 29, 2007
Posts: 159
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
Marshal

Joined: Mar 22, 2005
Posts: 41068
    
  43
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet call the method from one servlet to another servlet
 
Similar Threads
Has-A doubt
Abstract classes - instantiation
Object Lock and a class level lock
Anonymous Inner Class Question
A little help!