This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
-- I have javabean whose constructor has Paramters. How to pass parameters to constructor while initializing bean from JSP using Usebean tag? Second one: -- I have Javabean A in which one of the properties is of type Javabean B. Now problem is to get a property of B say x thorough the instance of A using get property tag in JSP .. Something like objA.getB().getX(); Any help in this regard is appreciable Regards Manohar
1. If your constructor has parameters, it is NOT a JavaBean. You will have to reorganize your code. The JSP <jsp:useBean tag depends on there being a no-args constructor. 2. I don't think that JSP will write code to do that. You will have to code it yourself. Bill