Hi Friends , I have shortly come across MVC architecture of development. As per books in MVC servlets act as controller ,Jsp act as presentation part and beans are act as business logic. I wann to Know Can a JSP page act as controller in MVC architecture,if yes then how.... By: Vivek Kumar Upadhyay
IMHO, the answer is "yes, but why would you want to?"
You could do it by simply embedding the appropriate logic in the page in scriptlets. (I assume you're thinking of MVC in terms of having a servlet as the controller usually - if you're going from that paradigm, bear in mind that JSPs are compiled to servlets at runtime.)
Seems easy enough to me, but as I stated above, I'd wonder why you'd want to do it that way - writing a servlet directly, for example, would seem to me to be an easier and more common-sense mechanism to accomplish the MVC structure.
Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!