title: Call method from jsp using jstl
body: <p>I have a condition where i want to pass EL, <code>element.dept_id</code> as parameter and get the name of department from a method as return. I want it directly from view page if possible.
  However, the return will be object of type department and i want to print the name of department. Any help? Can it be done without using scriptlet?</p>
  
  <pre><code>class Department{
  Private Integer id;
  Private String name;
  //getters
  //setters
  }
  
   &lt;c:forEach items="${empImpl.allEmployee}" var="element"&gt;
  
        &lt;tr&gt;
      &lt;td&gt;&lt;c:out value="${element.name}" /&gt;&lt;/td&gt;
      &lt;td&gt;&lt;c:out value="${element.gender}" /&gt;&lt;/td&gt;
  
      &lt;td&gt;&lt;c:out value="${element.salary}" /&gt;&lt;/td&gt;
  
      &lt;td&gt;Something like this // deptImpl.name(${element.dept_id})  &lt;/td&gt;
  </code></pre>