Help please how to go about this

Hi,
I have 2 java programs(one is a servlet and the other is a class file).The class file runs as an application when the main method is used.
Now I want to call the methods in this class file from the servlet.The servlet is in a folder by name "controller" and the other class file is in a folder called "model".
I want to call the initDatabase() method from the init() method in the servlet and the validateUser() method in the doPost() method.
Kindly let me know what can be done.Any help would be gr8tly appreciated.
Let me know if the codes for the respective program is required.
Thanks
as

You just all the appropriate methods.
Additional complications can occur, for example perhaps the access permissions are such that you can't call the methods, or the design of the called class is such that its methods can't be independantly invoked like that (i.e., it wasn't designed very well). But there's no way for us to tell whether that's the case here.

Similar Messages

Maybe you are looking for

  • I can hide purchased books in iTunes, but this change won't apply to my iPad when synced?

    There's a book I bought two years ago that's just not a good book and I can't have visible with my little siblings using my iPad. It's not on my bookshelf on my iBooks app, but it is under Purchased Books. I understand you cannot permanently remove t

  • USB720 VZAccess not working with Mac OS 10.6.4

    Hello: I have a USB 720 modem that I have been using on my Intel Macbook Pro with OS 10.5.8. I just bought a Mac Pro tower with OS 10.6.4, downloaded the VZAccess update 7.0.5, installed it and can not connect. When I do it says, "Error Connection fa

  • When starting InDesignCS2 received new error message -- InDesign is missing required system fonts or

    We are not able to start Indesign CS2 without getting the error message: <<InDesign is missing required system fonts or CMap files. Please reinstall InDesign.>> This is on WinXP.<br /><br />Recently I installed Creative Suite CS4. It took almost a da

  • T61 Rescue and Recovery - system restore has no restore points

    Hello I just got a T61 with Vista basic, I made some restore points in Vista but in ThinkVantage, system restore there is no restore points in the "Main hard disk" area. I also have updated using ThinkVantage system update, all the crucial items. Is

  • HR  documents

    hello guys n girls... i am undergoing training in SAP HR. i have softcopies of 4.7 version. if anyone has softcopies relating to HR 5.0/6.0  can they please forward them to me.. would appreciate your help .. thanks and regards rajesh