I had written a observer to trap product view page event and it is working fine.Now i just want to load block from custom module controller without changing my current browser url so for that i am calling initForward() function with my custom module details but it is not working .The code for the try out is given below.
public function getProductView(Varien_Event_Observer $observer)
{
$resp = $observer->getEvent()->getFront()->getAction()->getRequest();
$requestUri = $resp->getRequestString();
if ($resp->getActionName() == 'noRoute'){
$request = Mage::app()->getRequest();
$request->initForward()
->setControllerName('index')
->setModuleName('customproduct')
->setActionName('index')
->setDispatched(false);
return false;
}
}