This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
Hi! I'm doing a web application using jsp's. How do i instantiate a bean in a servlet (controller). Regards Danish Shaukat
Author and all-around good cowpoke
posted 15 years ago
Just like creating any other object. MyBean b = new MyBean(); AFAIK the servlet api does not provide any shortcut initialization like the JSP <jsp:setProperty ....> (but that is rather inefficient anyway) Bill