title: how to solve error of jsp page?
body: <p>I have string type method in <strong>java</strong> file it contain string array and when I try to call in <strong>jsp</strong>, it give me an error.</p>
  
  <pre><code>public String[] ordering(ActionRequest actionRequest,ActionResponse actionResponse)  
      throws IOException,PortletException
  </code></pre>
  
  <p>JSP:</p>
  
  <pre><code>&lt;% 
    TestiPortlet obj=new TestiPortlet();
    String str[]=obj.ordering(actionRequest,actionResponse);
    out.println(str[0]);
  %&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Multiple annotations found at this line:- actionResponse cannot be resolved to a     variabl-actionRequest cannot be resolved to a variable
  
      Stacktrace:
      javax.portlet.PortletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /html/testi/list.jsp at line 8
  
      5: 
      6: &lt;% 
      7:   TestiPortlet obj=new TestiPortlet();
      8:   String str[]=obj.ordering(actionRequest,actionResponse);
      9:   out.println(str[0]);
      10: %&gt;
      11: 
  </code></pre>