I have a bean which has a constructor with some arguments I have to invoke it thtough JSP I am doing follwing thng in my scriptlet tag <% SomeObj x = new SomeObj(...); bar.FooBean foobar = new FooBean(x); application.setAttribute("foobar",foobar); %> where foobar is the name of the bean class now my doubt is how can i retrive the bean is there any method like application.getAttribute() or some other way???
SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
posted 16 years ago
i think that's the wrong way to call a bean ...i ,am not able to understand that why are you using set/getAttributes()...your don't need them ....you have to use a bean via introspection. just declare functions into a bean and keep calling them into the jsp .....simple .
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads