title: Hit event on before every action in liferay means pre action event
body: <p>I need to call the one method before action method calls in portlet controller.</p>
  
  <p>So here I am using a hook like:</p>
  
  <ol>
  <li>Create Hook</li>
  <li>Create a class and extend Action.</li>
  <li>Override run method write my own logic.</li>
  <li>Create portal.properties file and added following line</li>
  </ol>
  
  <blockquote>
    <p>servlet.service.events.pre=com.liferay.sample.hook.LoginAction</p>
  </blockquote>
  
  <ol start="5">
  <li>Pointing it fron liferay-hook.xml</li>
  </ol>
  
  <p>Every thing was went fine but  here the problem with this one is the created hook is executed each and every time page load but I want execute this hook is only when I click on the Action buttons(Action urls) in any portlet.</p>
  
  <p>Can any help me out on it?</p>
  
  <p>Thanks in Advance.</p>
  
  <p>Naresh Kallamadi</p>