On Nov 19, 2008, at 10:17 AM, Jan Kriesten wrote: > > Hi, > > I just came along another problem with resin (3.2.1 this time): > > Error message: java.lang.InstantiationException: jsp:useBean needs > 'bean' or 'class' > Show stacktrace > > That shouldn't happen I suppose, right?! > > The syntax ref at Sun says: > > ---8<--- > type="package.class" > > If the Bean already exists in the scope, gives the Bean a data type > other than > the class from which it was instantiated. If you use type without > class or > beanName, no Bean is instantiated. The package and class name are > case sensitive. > ---8<--- > > So, why is resin complaining at this?
Does the bean exist? If the bean isn't in the scope, then you do need the bean or class, because the type attribute is only allowed for pre- existing beans. -- Scott > > > > Best regards, --- Jan. > > > _______________________________________________ > resin-interest mailing list > [email protected] > http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/resin-interest
