Should i instantiate a new delegator?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Should i instantiate a new delegator?

vijay Si
Hi
in bsh i used the following :
import org.ofbiz.entity.*;

/*Getting Delegator and Dispatcher*/
delegator = request.getAttribute("delegator");
dispatcher = request.getAttribute("dispatcher");

Now i am using JSP and need to get the delegator and dispatcher objects
Should i instantiate a new delegator and dispatcher object all together?

using above code  as-it-is , i am bound to get an error..(and i do get one).

Also does it make sense to instantiate a new one?

Regards
Vijyendra