"can i call some class method/operations directly after form submit
instead of creating a php file to handle the calling " --> eloborate this further. Ok i m here to help,i m in Java and PHP==> xpecialy OOP.
1st advise:
Dun use OOP if u dun realli need them
//=========================================
<form name="addform" action="go to some processing_file">
..
</form>
//==========================================
in the processing_file do wat u want then redirect back to the page that you prefer.
"in jsp u can call servlet instance directly...." ===> are you sure this is true? think carefully, when u initiate a servlet instance, the functions(methods) are made accesible for that particular instance rite? Then eventually the process will return something to the task u have requested. This is actually works similiar to the suggested solution above.Just the
Hmm...i need to know what function u wan to use. Try to explain more on the system's flow. It's juzt the matter of 'redirect' that u dun c in those servlets.
2nd Advise:
Dun use OOP is if the function u wan to create is 'not common enough'
Meaning that this function will only be excuted once, only in a particular page. If this realli happens, make use of structured programming.
Last Advice
PHP OOP is fun! Every class written is unique for its programmer.Juz like u born a baby everytime u created a class. So dun feel 'troubled' by it.
Enjoy!