title: In jsp: String cannot be resolved to a type
body: <pre><code>&lt;%
  String bn=request.getParameter("branch");
  if(bn.equals("MK")){
  %&gt;
  </code></pre>
  
  <p>I am getting error in myeclipse that </p>
  
  <p>String cannot be resolved to a type</p>
  
  <p>The method getParameter(String) from the type ServletRequest refers to the missing type String</p>
  
  <p>Multiple annotations found at this line:
      - String cannot be resolved to a type
      - The method getParameter(String) from the type ServletRequest refers to the missing 
       type String</p>
  
  <p>this is Java code/bean class where i am getting same error for "String" 
  the code is here</p>
  
  <pre><code>public class Customer {//for Customer i am getting this error- Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
  private int cid; // No error here
  
  private String cname; //error here- String cannot be resolved to a type
  private String email; //error here- String cannot be resolved to a type
  
  private long phone;// No error here
  
  // when i gives no arg constructor it gives this error
  // Implicit super constructor Object() is undefined. Must explicitly invoke another constructor
  
  //public Customer(){    }
  
  
  }
  ...
  ...
  
  } }
  </code></pre>
  
  <p>before it was working and i was in eclipse, now it is in Myeclipse and getting error. 
  please tell, how i can solve it. thank you all</p>
  
  <p>One more problem is- In myeclipse when i press Ctrl+space(not working), its not showing any option.</p>